共用方式為


UserCustomAction.DeleteObject 方法

刪除自訂動作。

命名空間:  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 Overridable Sub DeleteObject
'用途
Dim instance As UserCustomAction

instance.DeleteObject()
public virtual void DeleteObject()

例外狀況

例外狀況 條件
[Microsoft.SharePoint.SPException]

不存在的自訂動作。錯誤碼 ︰-2146232832。自訂巨集指令已修改伺服器上,因此無法認可變更。錯誤碼 ︰-2130575305

[System.UnauthorizedAccessException]

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

請參閱

參照

UserCustomAction 類別

UserCustomAction 成員

Microsoft.SharePoint.Client 命名空間