Field.ValidationMessage - Propriété
Gets or sets a value that specifies the error message returned when data validation fails for the field.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Property ValidationMessage As String
Get
Set
'Utilisation
Dim instance As Field
Dim value As String
value = instance.ValidationMessage
instance.ValidationMessage = value
public string ValidationMessage { get; set; }
Valeur de propriété
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. |
Remarques
Its length must be equal to or less than 1024.