DataAnnotationsModelValidator<TAttribute>.Attribute Property

Gets the validation attribute from the model validator.

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

Syntax

'Declaration
Protected ReadOnly Property Attribute As TAttribute
    Get
protected TAttribute Attribute { get; }
protected:
property TAttribute Attribute {
    TAttribute get ();
}

Property Value

Type: TAttribute
The validation attribute from the model validator.

See Also

Reference

DataAnnotationsModelValidator<TAttribute> Class

System.Web.Mvc Namespace