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)

Syntax

public virtual void OnAddingToContentType(
    SPContentType contentType
)

Parameters

Remarks

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

See also

Reference

SPField class

SPField members

Microsoft.SharePoint namespace