Share via


ModelValidationContextBase Constructor

Definition

Instantiates a new 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)

Parameters

actionContext
ActionContext

The ActionContext for this context.

modelMetadata
ModelMetadata

The ModelMetadata for this model.

metadataProvider
IModelMetadataProvider

The IModelMetadataProvider to be used by this context.

Applies to