NAnt SDK Documentation - v0.92 |

# ValidatorAttribute Class

Base class for all validator attributes.

For a list of all members of this type, see ValidatorAttribute Members.

System.Object
System.Attribute
NAnt.Core.Attributes.ValidatorAttribute
NAnt.Core.Attributes.BooleanValidatorAttribute
NAnt.Core.Attributes.DateTimeValidatorAttribute
NAnt.Core.Attributes.Int32ValidatorAttribute
NAnt.Core.Attributes.StringValidatorAttribute

[Visual Basic]
<AttributeUsage(ValidOn:=AttributeTargets.Property, AllowMultiple:=False, Inherited:=True)>
MustInherit Public Class ValidatorAttribute
Inherits Attribute
[C#]
[AttributeUsage(ValidOn=AttributeTargets.Property, AllowMultiple=False, Inherited=True)]
public abstract class ValidatorAttribute : Attribute

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Requirements

Namespace: NAnt.Core.Attributes

Assembly: NAnt.Core (in NAnt.Core.dll)

#### See Also

ValidatorAttribute Members | NAnt.Core.Attributes Namespace