Field.ValidationFormula property

Gets or sets a value that specifies the data validation criteria for the value of the field.

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

Syntax

'Declaration
Public Property ValidationFormula As String
    Get
    Set
'Usage
Dim instance As Field
Dim value As String

value = instance.ValidationFormula

instance.ValidationFormula = value
public string ValidationFormula { get; set; }

Property value

Type: System.String
Returns a String instance representing the data validation criteria for the value of the field.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

FieldTypeKind is not one of the following: Text, Number, Integer, Currency, Choice, or DateTime. Error code: -2146232832.

See also

Reference

Field class

Field members

Microsoft.SharePoint.Client namespace