Share via


SPList.ValidationMessage - Propriété

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

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Property ValidationMessage As String
    Get
    Set
'Utilisation
Dim instance As SPList
Dim value As String

value = instance.ValidationMessage

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

Valeur de propriété

Type : System.String
The text of the message.

Exceptions

Exception Condition
ArgumentException

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

Remarques

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.

Voir aussi

Référence

SPList classe

SPList - Membres

Microsoft.SharePoint - Espace de noms

ValidationFormula