Partager via


ObjectModelValidator Constructeur

Définition

Initialise une nouvelle instance de ObjectModelValidator.

public:
 ObjectModelValidator(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider, System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::ModelBinding::Validation::IModelValidatorProvider ^> ^ validatorProviders);
public ObjectModelValidator (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider> validatorProviders);
new Microsoft.AspNetCore.Mvc.ModelBinding.ObjectModelValidator : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IModelValidatorProvider> -> Microsoft.AspNetCore.Mvc.ModelBinding.ObjectModelValidator
Public Sub New (modelMetadataProvider As IModelMetadataProvider, validatorProviders As IList(Of IModelValidatorProvider))

Paramètres

modelMetadataProvider
IModelMetadataProvider

L’IModelMetadataProvideropérateur

validatorProviders
IList<IModelValidatorProvider>

La liste IModelValidatorProvider.

S’applique à