SPListDataValidationException.SPFailure.Message property
Gets a message with information about the failure.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property Message As String
Get
'Usage
Dim instance As SPListDataValidationException.SPFailure
Dim value As String
value = instance.Message
public string Message { get; }
Property value
Type: System.String
If the Reason property contains SPReason.DataFailure, then the value of the Message property is the user-provided value of the ValidationMessage property of the list or field where data validation failed. If the Reason property returns SPReason.FormulaError, then a static message is provided by the system.
See also
Reference
SPListDataValidationException.SPFailure class