Compartilhar 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)
Available in Sandboxed Solutions: No

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