Compartir a través de


ModelValidationContextBase Constructor

Definición

Crea una instancia de un nuevo objeto 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

para ActionContext este contexto.

modelMetadata
ModelMetadata

para ModelMetadata este modelo.

metadataProvider
IModelMetadataProvider

que IModelMetadataProvider va a usar este contexto.

Se aplica a