NoteField.Validate method

Verifies that the value of Value() meets all restrictions on field content such as length, format, and data type.

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

Syntax

'Declaration
Public Overrides Sub Validate
'Usage
Dim instance As NoteField

instance.Validate()
public override void Validate()

Implements

IValidator.Validate()

Remarks

In addition to calling the base Validate, this override ensures that, if the note is for an item in a document library, the note complies with the library's length limitations for notes.

Notes to inheritors

Value() is the value of the control in the UI, not the underlying value (which is the ItemFieldValue property of the SPFieldMultiLineText object that has the NoteField as its FieldRenderingControl property). Use Validate only when you need validation of the UI value. To validate ItemFieldValue, use GetValidatedString().

See also

Reference

NoteField class

NoteField members

Microsoft.SharePoint.WebControls namespace