다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

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

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