Partager via


ObjectModelValidator.GetValidationVisitor Méthode

Définition

Surcharges

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

Obtient un ValidationVisitor qui traverse le graphique du modèle objet et effectue la validation.

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

Obtient un ValidationVisitor qui traverse le graphique du modèle objet et effectue la validation.

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

Source:
ObjectModelValidator.cs
Source:
ObjectModelValidator.cs

Obtient un ValidationVisitor qui traverse le graphique du modèle objet et effectue la validation.

public:
 abstract Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationVisitor ^ GetValidationVisitor(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 abstract Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor GetValidationVisitor (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);
abstract member GetValidationVisitor : 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 MustOverride Function GetValidationVisitor (actionContext As ActionContext, validatorProvider As IModelValidatorProvider, validatorCache As ValidatorCache, metadataProvider As IModelMetadataProvider, validationState As ValidationStateDictionary) As ValidationVisitor

Paramètres

actionContext
ActionContext

L’ActionContextopérateur

validatorProvider
IModelValidatorProvider

L’IModelValidatorProvideropérateur

validatorCache
Microsoft.AspNetCore.Mvc.Internal.ValidatorCache

L’Microsoft.AspNetCore.Mvc.Internal.ValidatorCacheopérateur

metadataProvider
IModelMetadataProvider

L’IModelMetadataProvideropérateur

Retours

ValidationVisitor qui traverse le graphique du modèle objet.

S’applique à

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

Source:
ObjectModelValidator.cs

Obtient un ValidationVisitor qui traverse le graphique du modèle objet et effectue la validation.

public:
 abstract Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationVisitor ^ GetValidationVisitor(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 abstract Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor GetValidationVisitor (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 abstract Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor GetValidationVisitor (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);
abstract member GetValidationVisitor : 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 MustOverride Function GetValidationVisitor (actionContext As ActionContext, validatorProvider As IModelValidatorProvider, validatorCache As ValidatorCache, metadataProvider As IModelMetadataProvider, validationState As ValidationStateDictionary) As ValidationVisitor

Paramètres

actionContext
ActionContext

L’ActionContextopérateur

validatorProvider
IModelValidatorProvider

L’IModelValidatorProvideropérateur

validatorCache
ValidatorCache

L’ValidatorCacheopérateur

metadataProvider
IModelMetadataProvider

L’IModelMetadataProvideropérateur

Retours

ValidationVisitor qui traverse le graphique du modèle objet.

S’applique à