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
'Declaration
Public Overridable Sub OnAddingToContentType ( _
contentType As SPContentType _
)
'Usage
Dim instance As SPField
Dim contentType As SPContentType
instance.OnAddingToContentType(contentType)
public virtual void OnAddingToContentType(
SPContentType contentType
)
Parameters
contentType
Type: Microsoft.SharePoint.SPContentTypeThe content type to which the field is added.
Remarks
Use this method in a derived class to provide custom logic when a field is added to a content type.