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)
Available in Sandboxed Solutions: No

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