Метод 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. |