Freigeben über


FieldValidationMetadata.FieldName Property

Gets or sets the name of the data field.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Property FieldName As String
    Get
    Set
public string FieldName { get; set; }
public:
property String^ FieldName {
    String^ get ();
    void set (String^ value);
}

Property Value

Type: System.String
The name of the data field.

Remarks

The field name is set by the ValidationMessage method. You typically do not have to use this property directly.

See Also

Reference

FieldValidationMetadata Class

System.Web.Mvc Namespace