Share via


SPListDataValidationException.SPFailure.Name property

Gets the name of the field or the ID of the list where validation failed.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property Name As String
    Get
'Usage
Dim instance As SPListDataValidationException.SPFailure
Dim value As String

value = instance.Name
public string Name { get; }

Property value

Type: System.String
If the ValidationType property contains SPValidationType.UserFormulaItem, then the value of the Name property is the value of the ID property of the list where validation failed. Otherwise, it is the value of the InternalName property of the field where validation failed.

See also

Reference

SPListDataValidationException.SPFailure class

SPListDataValidationException.SPFailure members

Microsoft.SharePoint namespace