Partager via


ModelValidationContextBase Constructeur

Définition

Instancie un nouveau ModelValidationContextBase.

public:
 ModelValidationContextBase(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ modelMetadata, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider);
public ModelValidationContextBase (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase
Public Sub New (actionContext As ActionContext, modelMetadata As ModelMetadata, metadataProvider As IModelMetadataProvider)

Paramètres

actionContext
ActionContext

ActionContext pour ce contexte.

modelMetadata
ModelMetadata

ModelMetadata pour ce modèle.

metadataProvider
IModelMetadataProvider

à IModelMetadataProvider utiliser par ce contexte.

S’applique à