共用方式為


ObjectModelValidator 建構函式

定義

初始化 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))

參數

validatorProviders
IList<IModelValidatorProvider>

IModelValidatorProvider 清單。

適用於