UrlValidationAttribute Class

Represents a RegularExpressionAttribute for validating URL's.

Definition

Namespace: Gemstone.ComponentModel.DataAnnotations
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter)]
public sealed class UrlValidationAttribute : RegularExpressionAttribute
Inheritance
Object    Attribute    ValidationAttribute    RegularExpressionAttribute    UrlValidationAttribute

Constructors

UrlValidationAttribute Creates a new UrlValidationAttribute.

Properties

ErrorMessageGets or sets an error message to associate with a validation control if validation fails.
(Inherited from ValidationAttribute)
ErrorMessageResourceNameGets or sets the error message resource name to use in order to look up the ErrorMessageResourceType property value if validation fails.
(Inherited from ValidationAttribute)
ErrorMessageResourceTypeGets or sets the resource type to use for error-message lookup if validation fails.
(Inherited from ValidationAttribute)
MatchTimeoutGets the timeout to use when matching the regular expression pattern
(Inherited from RegularExpressionAttribute)
MatchTimeoutInMillisecondsGets or sets the amount of time in milliseconds to execute a single matching operation before the operation times out.
(Inherited from RegularExpressionAttribute)
PatternGets the regular expression pattern.
(Inherited from RegularExpressionAttribute)
RequiresValidationContextGets a value that indicates whether the attribute requires validation context.
(Inherited from ValidationAttribute)
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)

Methods

EqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
FormatErrorMessageFormats the error message to display if the regular expression validation fails.
(Inherited from RegularExpressionAttribute)
GetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValidationResultChecks whether the specified value is valid with respect to the current validation attribute.
(Inherited from ValidationAttribute)
IsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
IsValidChecks whether the value entered by the user matches the regular expression pattern.
(Inherited from RegularExpressionAttribute)
MatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Validate(Object, ValidationContext)Validates the specified object.
(Inherited from ValidationAttribute)
Validate(Object, String)Validates the specified object.
(Inherited from ValidationAttribute)

Fields

DefaultErrorMessage Defines the default error message used when pattern fails validation.
ValidationPattern Defines the regular expression pattern used to validate value.

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also