Sdílet prostřednictvím


ObjectModelValidator Konstruktor

Definice

Inicializuje novou instanci objektu 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))

Parametry

modelMetadataProvider
IModelMetadataProvider

Hodnota IModelMetadataProvider

validatorProviders
IList<IModelValidatorProvider>

Seznam objektů IModelValidatorProvider

Platí pro