SPFeatureCollection.Remove method (Guid)

Removes the Feature with the specified ID from the collection.

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

Syntax

'Declaration
Public Sub Remove ( _
    featureId As Guid _
)
'Usage
Dim instance As SPFeatureCollection
Dim featureId As Guid

instance.Remove(featureId)
public void Remove(
    Guid featureId
)

Parameters

  • featureId
    Type: System.Guid

    The identifier (ID) of the Feature to remove.

Exceptions

Exception Condition
InvalidOperationException

The Feature is not activated.

ArgumentException

The Feature was not found.

-or-

The Feature is not installed.

Remarks

This method calls the Remove(Guid, Boolean) method with featureId and false to remove the Feature.

See also

Reference

SPFeatureCollection class

SPFeatureCollection members

Remove overload

Microsoft.SharePoint namespace