SPListDataValidationException.SPFailure.Message Property

Gets a message with information about the failure.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property Message As String
    Get
'Usage
Dim instance As SPListDataValidationException.SPFailure
Dim value As String

value = instance.Message
[ClientCallableAttribute]
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

SPListDataValidationException.SPFailure Members

Microsoft.SharePoint Namespace