Share via


LookupField.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 LookupField

instance.Validate()
public override void Validate()

Implements

IValidator.Validate()

Remarks

Value is the value of the child drop-down list in the UI, not the underlying value (which is ItemFieldValue) of the SPFieldLookup object that has the LookupField as its FieldRenderingControl property. Use Validate only when you need validation of the UI value. To validate ItemFieldValue, use GetValidatedString().

See also

Reference

LookupField class

LookupField members

Microsoft.SharePoint.WebControls namespace