Share via


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

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

Property Value

Type: TAttribute

The validation attribute from the model validator.

See Also

DataAnnotationsModelValidator<TAttribute> Class
System.Web.Mvc Namespace

Return to top