AllowEmpty Property

NAnt SDK Documentation - v0.92 |

# StringValidatorAttribute.AllowEmpty Property

Gets or sets a value indicating whether an empty string or a null reference (Nothing in Visual Basic) should be a considered a valid value.

[Visual Basic]
Public Property AllowEmpty As Boolean
[C#]
public bool AllowEmpty {get; set;}

#### Property Value

true if an empty string or a null reference (Nothing in Visual Basic) should be considered a valid value; otherwise, false. The default is true.

#### See Also

StringValidatorAttribute Class | NAnt.Core.Attributes Namespace