Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.