NAnt SDK Documentation - v0.92 |

# StringValidatorAttribute Properties

The properties of the StringValidatorAttribute class are listed below. For a complete list of StringValidatorAttribute class members, see the StringValidatorAttribute Members topic.

#### Public Instance Properties

AllowEmpty | 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.
Expression | Gets or sets a regular expression. The string will be validated to determine if it matches the expression.
ExpressionErrorMessage | An optional error message that can be used to better describe the regular expression error.
TypeId (inherited from Attribute) | When implemented in a derived class, gets a unique identifier for this Attribute.

#### See Also

StringValidatorAttribute Class | NAnt.Core.Attributes Namespace