ClientValidatorProviderContext 构造函数

定义

创建一个新的 ClientValidatorProviderContext

public:
 ClientValidatorProviderContext(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ modelMetadata, System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ClientValidatorItem ^> ^ items);
public ClientValidatorProviderContext (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorItem> items);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorProviderContext : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorItem> -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientValidatorProviderContext
Public Sub New (modelMetadata As ModelMetadata, items As IList(Of ClientValidatorItem))

参数

modelMetadata
ModelMetadata

ModelMetadata要验证的模型的 。

适用于