共用方式為


SPFeatureDefinitionCollection.Remove method (Guid, Int32, Boolean)

Forcely 從集合移除具有指定的 GUID 和相容性層級的功能定義。

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

Syntax

'宣告
Public Sub Remove ( _
    featureId As Guid, _
    compatibilityLevel As Integer, _
    force As Boolean _
)
'用途
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
)

參數

  • featureId
    Type: System.Guid

    會識別要移除之功能定義的 System.Guid。

  • force
    Type: System.Boolean

    如果是 true,強制移除 「 功能 」 定義 ;否則為 false。

請參閱

參照

SPFeatureDefinitionCollection class

SPFeatureDefinitionCollection members

Remove overload

Microsoft.SharePoint.Administration namespace