ContentType.DeleteObject Method

Deletes the content type.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)


<RemoteAttribute> _
Public Sub DeleteObject
Dim instance As ContentType

public void DeleteObject()


Exception Condition

The content type is read only. Error code: -2146232832.


The content type is a sealed content type and there is no list associated with it. Error code: -2146232832.


The content type is the last in the content type collection or failed to remove item from the site. Error code: -2146232832.

See Also


ContentType Class

ContentType Members

Microsoft.SharePoint.Client Namespace