SPField.OnAdded Method
Handles the event that occurs after a field is added.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Overridable Sub OnAdded ( _
op As SPAddFieldOptions _
)
'Usage
Dim instance As SPField
Dim op As SPAddFieldOptions
instance.OnAdded(op)
public virtual void OnAdded(
SPAddFieldOptions op
)
Parameters
op
Type: Microsoft.SharePoint.SPAddFieldOptionsOne of the enumeration values to specify an option that is implemented after the field is created.
Remarks
Use this method in a derived class to provide custom logic when a field is added.