SPFeatureDefinitionCollection.Remove method (Guid, Int32)

Removes the Feature definition with the specified GUID and compatibility level from the collection.

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

Syntax

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

instance.Remove(featureId, compatibilitLevel)
public void Remove(
    Guid featureId,
    int compatibilitLevel
)

Parameters

  • featureId
    Type: System.Guid

    System.Guid that identifies the Feature definition to remove.

  • compatibilitLevel
    Type: System.Int32

    int that identifies the compatibility level of Feature definition to remove.

See also

Reference

SPFeatureDefinitionCollection class

SPFeatureDefinitionCollection members

Remove overload

Microsoft.SharePoint.Administration namespace