Share via


SPFeatureDefinitionCollection.Remove Method (Guid, Boolean)

Forces removal of the Feature definition with the specified GUID from the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

instance.Remove(featureId, force)
public void Remove(
    Guid featureId,
    bool force
)

Parameters

  • featureId
    Type: System.Guid

    System.Guid that identifies the Feature definition to remove.

  • 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