Freigeben über


ValidationVisitor Konstruktoren

Definition

Überlädt

ValidationVisitor(ActionContext, IModelValidatorProvider, ValidatorCache, IModelMetadataProvider, ValidationStateDictionary)

Erstellt einen neuen ValidationVisitor.

ValidationVisitor(ActionContext, IModelValidatorProvider, ValidatorCache, IModelMetadataProvider, ValidationStateDictionary)

Erstellt einen neuen ValidationVisitor.

ValidationVisitor(ActionContext, IModelValidatorProvider, ValidatorCache, IModelMetadataProvider, ValidationStateDictionary)

Quelle:
ValidationVisitor.cs
Quelle:
ValidationVisitor.cs

Erstellt einen neuen ValidationVisitor.

public:
 ValidationVisitor(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IModelValidatorProvider ^ validatorProvider, Microsoft::AspNetCore::Mvc::Internal::ValidatorCache ^ validatorCache, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateDictionary ^ validationState);
public ValidationVisitor (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider validatorProvider, Microsoft.AspNetCore.Mvc.Internal.ValidatorCache validatorCache, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider * Microsoft.AspNetCore.Mvc.Internal.ValidatorCache * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor
Public Sub New (actionContext As ActionContext, validatorProvider As IModelValidatorProvider, validatorCache As ValidatorCache, metadataProvider As IModelMetadataProvider, validationState As ValidationStateDictionary)

Parameter

actionContext
ActionContext

Die ActionContext der aktuellen Anforderung zugeordnete.

validatorCache
Microsoft.AspNetCore.Mvc.Internal.ValidatorCache

Die Microsoft.AspNetCore.Mvc.Internal.ValidatorCache , die eine Liste von IModelValidators bereitstellt.

metadataProvider
IModelMetadataProvider

Der Anbieter, der zum Lesen von Metadaten für den Modelltyp verwendet wird.

Gilt für:

ValidationVisitor(ActionContext, IModelValidatorProvider, ValidatorCache, IModelMetadataProvider, ValidationStateDictionary)

Quelle:
ValidationVisitor.cs

Erstellt einen neuen ValidationVisitor.

public:
 ValidationVisitor(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IModelValidatorProvider ^ validatorProvider, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidatorCache ^ validatorCache, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateDictionary ^ validationState);
public ValidationVisitor (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider validatorProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache validatorCache, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState);
public ValidationVisitor (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider validatorProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache validatorCache, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary? validationState);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidatorCache * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor
Public Sub New (actionContext As ActionContext, validatorProvider As IModelValidatorProvider, validatorCache As ValidatorCache, metadataProvider As IModelMetadataProvider, validationState As ValidationStateDictionary)

Parameter

actionContext
ActionContext

Die ActionContext der aktuellen Anforderung zugeordnete.

validatorCache
ValidatorCache

Die ValidatorCache , die eine Liste von IModelValidators bereitstellt.

metadataProvider
IModelMetadataProvider

Der Anbieter, der zum Lesen von Metadaten für den Modelltyp verwendet wird.

Gilt für: