NAnt SDK Documentation - v0.92

StringValidatorAttribute.Validate Method 

Checks if the specified value adheres to the rules defined by the properties of the StringValidatorAttribute.

[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 is an empty string value and AllowEmpty is set to false.

See Also

StringValidatorAttribute Class | NAnt.Core.Attributes Namespace