BaseChoiceField.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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Overrides Sub Validate
'Usage
Dim instance As BaseChoiceField
instance.Validate()
public override void Validate()
Implements
Remarks
The default implementation verifies that the field has a value if it is a required field and that it does not exceed the length limitation.
Notes to Inheritors
Value is the value of the control in the UI, not the underlying value (which is ItemFieldValue) of the SPField object that has the BaseChoiceField object as its FieldRenderingControl property. Use Validate only when you need validation of the UI value. To validate ItemFieldValue, use GetValidatedString().