DataAnnotationsModelValidator.Attribute Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the validation attribute for the model validator.

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

protected internal ValidationAttribute Attribute { get; private set; }

Property Value

Type: System.ComponentModel.DataAnnotations.ValidationAttribute

The validation attribute.

.NET Framework
Available since 4.5
Return to top
Show: