RemoteAttributeBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A ValidationAttribute which configures Unobtrusive validation to send an Ajax request to the web site. The invoked endpoint should return JSON indicating whether the value is valid.
public ref class RemoteAttributeBase abstract : System::ComponentModel::DataAnnotations::ValidationAttribute, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IClientModelValidator
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public abstract class RemoteAttributeBase : System.ComponentModel.DataAnnotations.ValidationAttribute, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidator
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type RemoteAttributeBase = class
inherit ValidationAttribute
interface IClientModelValidator
Public MustInherit Class RemoteAttributeBase
Inherits ValidationAttribute
Implements IClientModelValidator
- Inheritance
-
RemoteAttributeBase
- Derived
- Attributes
- Implements
Remarks
Does no server-side validation of the final form submission.
Constructors
RemoteAttributeBase() |
Initialize a new instance of RemoteAttributeBase. |
Properties
AdditionalFields |
Gets or sets the comma-separated names of fields the client should include in a validation request. |
HttpMethod |
Gets or sets the HTTP method ( |
RouteData |
Gets the RouteValueDictionary used when generating the URL where client should send a validation request. |
Methods
AddValidation(ClientModelValidationContext) |
Adds Unobtrusive validation HTML attributes to ClientModelValidationContext. |
FormatAdditionalFieldsForClientValidation(String) |
Formats |
FormatErrorMessage(String) | Applies formatting to an error message, based on the data field where the error occurred. |
FormatPropertyForClientValidation(String) |
Formats |
GetUrl(ClientModelValidationContext) |
Returns the URL where the client should send a validation request. |
IsValid(Object) | Determines whether the specified value of the object is valid. |