Condividi tramite


ObjectModelValidator Costruttore

Definizione

Inizializza una nuova istanza di 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))

Parametri

modelMetadataProvider
IModelMetadataProvider

Oggetto IModelMetadataProvider.

validatorProviders
IList<IModelValidatorProvider>

Elenco di IModelValidatorProvider.

Si applica a