ClientModelValidationContext 构造函数

定义

创建 ClientModelValidationContext 的一个新实例。

public:
 ClientModelValidationContext(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ attributes);
public ClientModelValidationContext (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, System.Collections.Generic.IDictionary<string,string> attributes);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * System.Collections.Generic.IDictionary<string, string> -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext
Public Sub New (actionContext As ActionContext, metadata As ModelMetadata, metadataProvider As IModelMetadataProvider, attributes As IDictionary(Of String, String))

参数

actionContext
ActionContext

ActionContext用于验证的 。

metadata
ModelMetadata

ModelMetadata用于验证的 。

metadataProvider
IModelMetadataProvider

IModelMetadataProvider要用于验证的 。

attributes
IDictionary<String,String>

要呈现的 HTML 标记的属性字典。

适用于