Share via


SPFeatureDefinitionCollection.Remove method (String, Boolean)

Forces removal of the Feature definition with the specified relative manifest path from the collection.

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

Syntax

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

instance.Remove(relativePathToFeatureManifest, _
    force)
public void Remove(
    string relativePathToFeatureManifest,
    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