DataAnnotationsModelValidator(TAttribute).Attribute Property (System.Web.Mvc)

Switch View :
ScriptFree
.NET Framework Class Library
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

Visual Basic
Protected ReadOnly Property Attribute As TAttribute
	Get
C#
protected TAttribute Attribute { get; }
Visual C++
protected:
property TAttribute Attribute {
	TAttribute get ();
}

Property Value

Type: TAttribute
The validation attribute from the model validator.
See Also

Reference