ClientModelValidationContext Constructor

Definition

Create a new instance of ClientModelValidationContext.

C#
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);

Parameters

actionContext
ActionContext

The ActionContext for validation.

metadata
ModelMetadata

The ModelMetadata for validation.

metadataProvider
IModelMetadataProvider

The IModelMetadataProvider to be used in validation.

attributes
IDictionary<String,String>

The attributes dictionary for the HTML tag being rendered.

Applies to

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0