Field.ValidationMessage Property

Gets or sets a value that specifies the error message returned when data validation fails for the field.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property ValidationMessage As String
    Get
    Set
'Usage
Dim instance As Field
Dim value As String

value = instance.ValidationMessage

instance.ValidationMessage = value
[RemoteAttribute]
public string ValidationMessage { get; set; }

Property Value

Type: System.String
Returns a String representing the error message returned when data validation fails for 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.

Remarks

Its length must be equal to or less than 1024.

See Also

Reference

Field Class

Field Members

Microsoft.SharePoint.Client Namespace