Compartilhar via


ModelValidationContextBase Construtor

Definição

Cria a instância de um novo 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)

Parâmetros

actionContext
ActionContext

O ActionContext para esse contexto.

modelMetadata
ModelMetadata

O ModelMetadata para este modelo.

metadataProvider
IModelMetadataProvider

O IModelMetadataProvider a ser usado por esse contexto.

Aplica-se a