RemoteAttribute Class
TOC
Collapse the table of content
Expand the table of content

RemoteAttribute Class

 

Provides an attribute that uses the jQuery validation plug-in remote validator.

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


<AttributeUsageAttribute(AttributeTargets.Property)>
Public Class RemoteAttribute
	Inherits ValidationAttribute
	Implements IClientValidatable

NameDescription
System_CAPS_protmethodRemoteAttribute()

Initializes a new instance of the RemoteAttribute class.

System_CAPS_pubmethodRemoteAttribute(String)

Initializes a new instance of the RemoteAttribute class using the specified route name.

System_CAPS_pubmethodRemoteAttribute(String, String)

Initializes a new instance of the RemoteAttribute class using the specified action-method name and controller name.

System_CAPS_pubmethodRemoteAttribute(String, String, AreaReference)

Initializes a new instance of the RemoteAttribute class.

System_CAPS_pubmethodRemoteAttribute(String, String, String)

Initializes a new instance of the RemoteAttribute class using the specified action-method name, controller name, and area name.

NameDescription
System_CAPS_pubpropertyAdditionalFields

Gets or sets the additional fields that are required for validation.

System_CAPS_pubpropertyErrorMessage

(Inherited from ValidationAttribute.)

System_CAPS_pubpropertyErrorMessageResourceName

(Inherited from ValidationAttribute.)

System_CAPS_pubpropertyErrorMessageResourceType

(Inherited from ValidationAttribute.)

System_CAPS_protpropertyErrorMessageString

(Inherited from ValidationAttribute.)

System_CAPS_pubpropertyHttpMethod

Gets or sets the HTTP method used for remote validation.

System_CAPS_pubpropertyRequiresValidationContext

(Inherited from ValidationAttribute.)

System_CAPS_protpropertyRouteData

Gets the route data dictionary.

System_CAPS_protpropertyRouteName

Gets or sets the route name.

System_CAPS_protpropertyRoutes

Gets the route collection from the route table.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFormatAdditionalFieldsForClientValidation(String)

Returns a comma-delimited string of validation field names.

System_CAPS_pubmethodFormatErrorMessage(String)

Formats the error message that is displayed when validation fails.(Overrides ValidationAttribute.FormatErrorMessage(String).)

System_CAPS_pubmethodSystem_CAPS_staticFormatPropertyForClientValidation(String)

Formats the property for client validation by prepending an asterisk (*) and a dot.

System_CAPS_pubmethodGetClientValidationRules(ModelMetadata, ControllerContext)

Gets a list of client validation rules for the property.

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodGetUrl(ControllerContext)

Gets the URL for the remote validation call.

System_CAPS_pubmethodGetValidationResult(Object, ValidationContext)

(Inherited from ValidationAttribute.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodIsValid(Object)

This method always returns true.(Overrides ValidationAttribute.IsValid(Object).)

System_CAPS_protmethodIsValid(Object, ValidationContext)

(Inherited from ValidationAttribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidate(Object, String)

(Inherited from ValidationAttribute.)

System_CAPS_pubmethodValidate(Object, ValidationContext)

(Inherited from ValidationAttribute.)

This attribute enables a client-side validation call to the server where the actual validation is performed. The client side version of this class is ModelClientValidationRemoteRule.

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

Return to top
Show:
© 2016 Microsoft