WebPartDefinition.DeleteWebPart メソッド
Deletes the Web Part from the page.
名前空間: Microsoft.SharePoint.Client.WebParts
アセンブリ: 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 DeleteWebPart
'使用
Dim instance As WebPartDefinition
instance.DeleteWebPart()
public void DeleteWebPart()
例外
例外 | 条件 |
---|---|
[Microsoft.SharePoint.WebPartPages.WebPartPageUserException] | The current user has insufficient permissions. Error code: -1. |
注釈
When Scope is User, the current user must have permissions to add and delete personalized Web Parts. When Scope is Shared, the current user must have permissions to customize pages.