Export (0) Print
Expand All

UrlAttribute Class

Represents a MVC Url attribute.

Namespace:  Microsoft.Web.Mvc
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false)]
public sealed class UrlAttribute : DataTypeAttribute, 

The UrlAttribute type exposes the following members.

Public methodUrlAttributeInitializes a new instance of the UrlAttribute class.

Public propertyCustomDataType (Inherited from DataTypeAttribute.)
Public propertyDataType (Inherited from DataTypeAttribute.)
Public propertyDisplayFormat (Inherited from DataTypeAttribute.)
Public propertyErrorMessage (Inherited from ValidationAttribute.)
Public propertyErrorMessageResourceName (Inherited from ValidationAttribute.)
Public propertyErrorMessageResourceType (Inherited from ValidationAttribute.)
Public propertyRequiresValidationContext (Inherited from ValidationAttribute.)
Public propertyTypeId (Inherited from Attribute.)

Public methodEquals (Inherited from Attribute.)
Public methodFormatErrorMessage (Inherited from ValidationAttribute.)
Public methodGetClientValidationRulesRetrieves a client validation rules.
Public methodGetDataTypeName (Inherited from DataTypeAttribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodGetValidationResult (Inherited from ValidationAttribute.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodIsValidDetermines whether the specified value of the URL is valid. (Overrides DataTypeAttribute.IsValid(Object).)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)
Public methodValidate(Object, String) (Inherited from ValidationAttribute.)
Public methodValidate(Object, ValidationContext) (Inherited from ValidationAttribute.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2014 Microsoft