共用方式為


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 標籤的屬性字典。

適用於