Share via


BaseFieldControl.RegisterFieldControl method

Registers the BaseFieldControl by adding it to the collections of validators and field controls.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected Overridable Sub RegisterFieldControl
'Usage

Me.RegisterFieldControl()
protected virtual void RegisterFieldControl()

Remarks

The default implementation adds the BaseFieldControl field to the collection of Validators and to the current FieldControlCollection().

Typically, when a list item is updated, the save or update logic iterates through the FieldControlCollection() and updates each changed field.

See also

Reference

BaseFieldControl class

BaseFieldControl members

Microsoft.SharePoint.WebControls namespace