SPListDataValidationException.SPFailure.Reason Property

Gets the reason for 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 Reason As SPListDataValidationException.SPReason
    Get
'Usage
Dim instance As SPListDataValidationException.SPFailure
Dim value As SPListDataValidationException.SPReason

value = instance.Reason
[ClientCallableAttribute]
public SPListDataValidationException.SPReason Reason { get; }

Property Value

Type: Microsoft.SharePoint.SPListDataValidationException.SPReason
An enumeration value that describes the reason for the failure.

See Also

Reference

SPListDataValidationException.SPFailure Class

SPListDataValidationException.SPFailure Members

Microsoft.SharePoint Namespace