ActivateOnDefault & AutoActivateInCentralAdmin feature 属性

<?xml version="1.0" encoding="utf-8" ?>
<Feature Id="21003D96-D88E-42ed-AF97-2C4C22BFA3CF"
     
Title="Test Web Application Feature"
     
Description="I should be activated by default."
     
Version="1.0.0.0"
     
Scope="WebApplication"
     
Hidden="false"
     
xmlns="http://schemas.microsoft.com/sharepoint/"
     
ActivateOnDefault="true"
     
AutoActivateInCentralAdmin="true"
     
AlwaysForceInstall="true">
</Feature>
ActivateOnDefault 
 Optional Boolean. TRUE if the Feature is activated by default during installation or when a Web application is created; FALSE if the Feature is not activated. This attribute equals TRUE by default. The ActivateOnDefault attribute does not apply to site collection (Site) or Web site (Web) scoped Features.
In general, Farm-scoped Features become activated during installation, and when a new Web application is created, all installed Web application-scoped Features in it become activated.

AutoActivateInCentralAdmin
Optional Boolean. TRUE if the Feature is activated by default in the Administrative Web site, site collection, or Web application. This attribute equals FALSE by default. The AutoActivateInCentralAdmin attribute does not apply to Farm-scoped Features.





posted @ 2012-01-13 10:05  队长  阅读(367)  评论(0编辑  收藏  举报