StringValidatorAttribute overview
StringValidatorAttribute Constructor
|
Initializes a new instance of the StringValidatorAttribute class. |
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. |
Equals (inherited from Attribute) | Returns a value that indicates whether this instance is equal to a specified object. |
GetHashCode (inherited from Attribute) | Returns the hash code for this instance. |
GetType (inherited from Object) | Gets the Type of the current instance. |
IsDefaultAttribute (inherited from Attribute) | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. |
Match (inherited from Attribute) | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. |
ToString (inherited from Object) | Returns a String that represents the current Object. |
Validate | Checks if the specified value adheres to the rules defined by the properties of the StringValidatorAttribute. |
StringValidatorAttribute Class | NAnt.Core.Attributes Namespace