Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
'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
)
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.
Please sign in to use this experience.
Sign in