Share via


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)

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)