Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OnDeletingFromContentType Method

SPField.OnDeletingFromContentType Method

Handles the event that occurs when a field is deleted from a specified content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public virtual void OnDeletingFromContentType(
	SPContentType contentType


Type: Microsoft.SharePoint.SPContentType

A content type from which the field is being deleted.

Use this method in a derived class to add custom logic before deleting a field from a content type.

© 2015 Microsoft