ValidatorAttribute Class

Summary

Base class for all validator attributes.
graph BT Type-->Base0["Attribute"] Type["ValidatorAttribute"] class Type type-node Derived0["BooleanValidatorAttribute"]-->Type click Derived0 "/api/NAnt.Core.Attributes/BooleanValidatorAttribute" Derived1["DateTimeValidatorAttribute"]-->Type click Derived1 "/api/NAnt.Core.Attributes/DateTimeValidatorAttribute" Derived2["Int32ValidatorAttribute"]-->Type click Derived2 "/api/NAnt.Core.Attributes/Int32ValidatorAttribute" Derived3["StringValidatorAttribute"]-->Type click Derived3 "/api/NAnt.Core.Attributes/StringValidatorAttribute"

Syntax

[AttributeUsage(AttributeTargets.Property, Inherited = true)]
public abstract class ValidatorAttribute : Attribute

Attributes

Type Description
AttributeUsageAttribute

Methods

Name Value Summary
Validate(Object) void
Validates the specified value.