ClientModelValidationContext Class¶
The context for client-side model validation.
- Namespace
Microsoft.AspNetCore.Mvc.ModelBinding.Validation
- Assemblies
- Microsoft.AspNetCore.Mvc.Abstractions
Syntax¶
public class ClientModelValidationContext : ModelValidationContextBase
-
class
Microsoft.AspNetCore.Mvc.ModelBinding.Validation.
ClientModelValidationContext
Constructors¶
-
ClientModelValidationContext
(Microsoft.AspNetCore.Mvc.ActionContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider, System.Collections.Generic.IDictionary<System.String, System.String>)¶ Create a new instance of
Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext
.Arguments: - actionContext (Microsoft.AspNetCore.Mvc.ActionContext) – The
Microsoft.AspNetCore.Mvc.ActionContext
for validation. - metadata (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata) – The
Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
for validation. - metadataProvider (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider) – The
Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider
to be used in validation. - attributes (System.Collections.Generic.IDictionary<System.String>) – The attributes dictionary for the HTML tag being rendered.
public ClientModelValidationContext(ActionContext actionContext, ModelMetadata metadata, IModelMetadataProvider metadataProvider, IDictionary<string, string> attributes)
- actionContext (Microsoft.AspNetCore.Mvc.ActionContext) – The
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ClientModelValidationContext.
Attributes
¶ Gets the attributes dictionary for the HTML tag being rendered.
Return type: System.Collections.Generic.IDictionary<System.String> public IDictionary<string, string> Attributes { get; }
-