SPFeatureDefinitionCollection.Remove method (Guid, Int32, Boolean)
Forcely 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, _
compatibilityLevel As Integer, _
force As Boolean _
)
'Usage
Dim instance As SPFeatureDefinitionCollection
Dim featureId As Guid
Dim compatibilityLevel As Integer
Dim force As Boolean
instance.Remove(featureId, compatibilityLevel, _
force)
public void Remove(
Guid featureId,
int compatibilityLevel,
bool force
)
Parameters
featureId
Type: System.GuidSystem.Guid that identifies the Feature definition to remove.
- compatibilityLevel
Type: System.Int32
force
Type: System.Booleantrue to force removal of the Feature definition; otherwise, false.
See also
Reference
SPFeatureDefinitionCollection class