SPFeatureDefinition.AlwaysForceInstall property

Gets a value that indicates whether the force flag is set to true by default during installation.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

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

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

Property value

Type: System.Boolean
A value of true specifies the force flag is set to true by default; otherwise, false.

Remarks

A value of true will install the feature even if it is already installed.

See also

Reference

SPFeatureDefinition class

SPFeatureDefinition members

Microsoft.SharePoint.Administration namespace

Other resources

SharePoint Feature