DataAnnotationsModelValidator.Attribute Property
Gets or sets the validation attribute for the model validator.
Namespace: System.Web.Http.Validation.Validators
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Protected Friend Property Attribute As ValidationAttribute
Get
Private Set
'Usage
Dim value As ValidationAttribute
value = Me.Attribute
protected internal ValidationAttribute Attribute { get; private set; }
protected public:
property ValidationAttribute^ Attribute {
ValidationAttribute^ get ();
private: void set (ValidationAttribute^ value);
}
member Attribute : ValidationAttribute with get, private set
function get Attribute () : ValidationAttribute
private function set Attribute (value : ValidationAttribute)
Property Value
Type: System.ComponentModel.DataAnnotations.ValidationAttribute
The validation attribute for the model validator.