SPFeatureDefinitionCollection.Remove method (String, Int32, Boolean)

Force removal of the Feature definition with the specified relative manifest path and compatibility level from the collection.

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

Syntax

'Declaration
Public Sub Remove ( _
    relativePathToFeatureManifest As String, _
    compatibilityLevel As Integer, _
    force As Boolean _
)
'Usage
Dim instance As SPFeatureDefinitionCollection
Dim relativePathToFeatureManifest As String
Dim compatibilityLevel As Integer
Dim force As Boolean

instance.Remove(relativePathToFeatureManifest, _
    compatibilityLevel, force)
public void Remove(
    string relativePathToFeatureManifest,
    int compatibilityLevel,
    bool force
)

Parameters

  • relativePathToFeatureManifest
    Type: System.String

    A string that contains the relative path to the manifest for the Feature.

  • force
    Type: System.Boolean

    true to force removal of the Feature definition; otherwise, false.

See also

Reference

SPFeatureDefinitionCollection class

SPFeatureDefinitionCollection members

Remove overload

Microsoft.SharePoint.Administration namespace