ContentType.DeleteObject 方法
Deletes the content type.
命名空间: 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 DeleteObject
用法
Dim instance As ContentType
instance.DeleteObject()
public void DeleteObject()
异常
异常 | 条件 |
---|---|
[Microsoft.SharePoint.SPContentTypeReadOnlyException] | The content type is read only. Error code: -2146232832. |
[Microsoft.SharePoint.SPContentTypeSealedException] | The content type is a sealed content type and there is no list associated with it. Error code: -2146232832. |
[Microsoft.SharePoint.SPException] | The content type is the last in the content type collection or failed to remove item from the site. Error code: -2146232832. |