Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPList.ValidationMessage property

Gets or sets the message that is displayed when validation fails for a list item.

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

Public Property ValidationMessage As String
Dim instance As SPList
Dim value As String

value = instance.ValidationMessage

instance.ValidationMessage = value

Property value

Type: System.String
The text of the message.


The string is too long. The maximum length of a validation message string is 1024.

Each time that a list item is added or updated, the validation formula contained in the ValidationFormula property is evaluated. If validation fails, the message in the ValidationMessage property is displayed.

© 2015 Microsoft