FileField.Validate Method

Verifies that Text is a valid file name.

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 FileField

instance.Validate()
public override void Validate()

Implements

IValidator.Validate()

Remarks

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

See Also

Reference

FileField Class

FileField Members

Microsoft.SharePoint.WebControls Namespace