RemoteAttribute Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
A RemoteAttributeBase pro kontrolery, které konfigurují nevtíravé ověření pro odeslání požadavku Ajax na web. Vyvoláná akce by měla vrátit JSON označující, jestli je hodnota platná.
public ref class RemoteAttribute : System::ComponentModel::DataAnnotations::ValidationAttribute, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IClientModelValidator
public ref class RemoteAttribute : Microsoft::AspNetCore::Mvc::RemoteAttributeBase
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class RemoteAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IClientModelValidator
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class RemoteAttribute : Microsoft.AspNetCore.Mvc.RemoteAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type RemoteAttribute = class
inherit ValidationAttribute
interface IClientModelValidator
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type RemoteAttribute = class
inherit RemoteAttributeBase
Public Class RemoteAttribute
Inherits ValidationAttribute
Implements IClientModelValidator
Public Class RemoteAttribute
Inherits RemoteAttributeBase
- Dědičnost
-
RemoteAttribute
- Dědičnost
- Atributy
- Implementuje
Poznámky
Neprovádí ověření konečného odeslání formuláře na straně serveru.
Konstruktory
| RemoteAttribute() |
Inicializuje novou instanci RemoteAttribute třídy. |
| RemoteAttribute(String) |
Inicializuje novou instanci RemoteAttribute třídy. |
| RemoteAttribute(String, String) |
Inicializuje novou instanci RemoteAttribute třídy. |
| RemoteAttribute(String, String, String) |
Inicializuje novou instanci RemoteAttribute třídy. |
Vlastnosti
| AdditionalFields |
Získá nebo nastaví názvy polí oddělených čárkami, které má klient zahrnout do žádosti o ověření. |
| AdditionalFields |
Získá nebo nastaví názvy polí oddělených čárkami, která má klient zahrnout do žádosti o ověření. (Zděděno od RemoteAttributeBase) |
| HttpMethod |
Získá nebo nastaví metodu HTTP ( |
| HttpMethod |
Získá nebo nastaví klienta METODY HTTP ( |
| RouteData |
RouteValueDictionary Získá použité při generování adresy URL, kde klient má odeslat žádost o ověření. |
| RouteData |
RouteValueDictionary Získá použití při generování adresy URL, kde má klient odeslat žádost o ověření. (Zděděno od RemoteAttributeBase) |
| RouteName |
Získá nebo nastaví název trasy použitý při generování adresy URL, kde klient má odeslat žádost o ověření. |
Metody
| AddValidation(ClientModelValidationContext) | |
| AddValidation(ClientModelValidationContext) |
Přidá do ClientModelValidationContextkódu HTML neobtěžující ověřovací atributy HTML . (Zděděno od RemoteAttributeBase) |
| FormatAdditionalFieldsForClientValidation(String) |
Formáty |
| FormatAdditionalFieldsForClientValidation(String) |
Formáty |
| FormatErrorMessage(String) | Applies formatting to an error message, based on the data field where the error occurred. |
| FormatErrorMessage(String) | (Zděděno od RemoteAttributeBase) |
| FormatPropertyForClientValidation(String) |
Formáty |
| GetUrl(ClientModelValidationContext) |
Vrátí adresu URL, kde má klient odeslat žádost o ověření. |
| IsValid(Object) | Determines whether the specified value of the object is valid. |
| IsValid(Object) | (Zděděno od RemoteAttributeBase) |