NAnt SDK Documentation - v0.92

Int32ValidatorAttribute.Validate Method 

Checks whether the specified value can be converted to an Int32 and whether the value lies within the range defined by the MinValue and MaxValue properties.

[Visual Basic]
Overrides Public Sub Validate( _
   ByVal value As Object _
)
[C#]
public override void Validate(
   object value
);

Parameters

value
The value to be checked.

Exceptions

Exception Type Condition
ValidationException

value cannot be converted to an Int32.

-or-

value is not in the range defined by MinValue and MaxValue.

See Also

Int32ValidatorAttribute Class | NAnt.Core.Attributes Namespace