Partager via


ClientModelValidationContext Constructeur

Définition

Créez une nouvelle instance de ClientModelValidationContext.

public:
 ClientModelValidationContext(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ attributes);
public ClientModelValidationContext (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, System.Collections.Generic.IDictionary<string,string> attributes);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * System.Collections.Generic.IDictionary<string, string> -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext
Public Sub New (actionContext As ActionContext, metadata As ModelMetadata, metadataProvider As IModelMetadataProvider, attributes As IDictionary(Of String, String))

Paramètres

actionContext
ActionContext

ActionContext pour validation.

metadata
ModelMetadata

ModelMetadata pour validation.

metadataProvider
IModelMetadataProvider

à utiliser dans la IModelMetadataProvider validation.

attributes
IDictionary<String,String>

Dictionnaire d’attributs pour la balise HTML en cours de rendu.

S’applique à