共用方式為


FeatureCollection.Remove 方法

移除功能的集合中的功能。

命名空間:  Microsoft.SharePoint.Client
組件:   Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)

語法

'宣告
Public Sub Remove ( _
    featureId As Guid, _
    force As Boolean _
)
'用途
Dim instance As FeatureCollection
Dim featureId As Guid
Dim force As Boolean

instance.Remove(featureId, force)
public void Remove(
    Guid featureId,
    bool force
)

參數

  • featureId
    類型:System.Guid

    若要移除的功能功能識別碼。

    它不能null 參考 (未執行任何動作 於 Visual Basic 中)。

  • force
    類型:System.Boolean

    指定是否要強制繼續不論是否有錯誤的作業。

    如果沒有任何錯誤,則會忽略此參數。

例外狀況

例外狀況 條件
InvalidOperationException

功能啟動的功能或功能無法停用並不force參數未設定為true。錯誤碼:-1。

UnauthorizedAccessException

目前的使用者會有足夠的權限。錯誤碼 ︰-2147024891。

請參閱

參照

FeatureCollection 類別

FeatureCollection 成員

Microsoft.SharePoint.Client 命名空間