다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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