SPFeatureDefinitionCollection.Remove method (String, Int32, Boolean)
Force removal of the Feature definition with the specified relative manifest path and compatibility level from the collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Remove ( _
relativePathToFeatureManifest As String, _
compatibilityLevel As Integer, _
force As Boolean _
)
'Usage
Dim instance As SPFeatureDefinitionCollection
Dim relativePathToFeatureManifest As String
Dim compatibilityLevel As Integer
Dim force As Boolean
instance.Remove(relativePathToFeatureManifest, _
compatibilityLevel, force)
public void Remove(
string relativePathToFeatureManifest,
int compatibilityLevel,
bool force
)
Parameters
relativePathToFeatureManifest
Type: System.StringA string that contains the relative path to the manifest for the Feature.
- compatibilityLevel
Type: System.Int32
force
Type: System.Booleantrue to force removal of the Feature definition; otherwise, false.
See also
Reference
SPFeatureDefinitionCollection class