SPFeatureCollection.Remove Method (Guid)
Removes the Feature with the specified ID from the collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.GuidThe 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.