Export (0) Print
Expand All

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)

'Declaration
PublicOverridableSubOnDeletingFromContentType ( _
	contentTypeAsSPContentType _
)
'Usage
DiminstanceAsSPFieldDimcontentTypeAsSPContentType

instance.OnDeletingFromContentType(contentType)

Parameters

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.

Show:
© 2014 Microsoft