다음을 통해 공유


SPFeatureDefinition.ActivateOnDefault Property

Gets a value that specifies whether the Feature is activated upon installation by default.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property ActivateOnDefault As Boolean
    Get
'Usage
Dim instance As SPFeatureDefinition
Dim value As Boolean

value = instance.ActivateOnDefault
public bool ActivateOnDefault { get; }

Property Value

Type: System.Boolean
true if the Feature is activated by default; otherwise, false.

See Also

Reference

SPFeatureDefinition Class

SPFeatureDefinition Members

Microsoft.SharePoint.Administration Namespace

Other Resources

Feature Element (Feature)