Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPField.OnAddingToContentType method

Handles the event that occurs when a field is added to a specified content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public virtual void OnAddingToContentType(
	SPContentType contentType
)

Parameters

contentType
Type: Microsoft.SharePoint.SPContentType

The content type to which the field is added.

Use this method in a derived class to provide custom logic when a field is added to a content type.

Show:
© 2015 Microsoft