DataTypeAttributeAdapter DataTypeAttributeAdapter DataTypeAttributeAdapter Class

Definition

A validation adapter that is used to map DataTypeAttribute's to a single client side validation rule.

public class DataTypeAttributeAdapter : Microsoft.AspNetCore.Mvc.DataAnnotations.AttributeAdapterBase<System.ComponentModel.DataAnnotations.DataTypeAttribute>
type DataTypeAttributeAdapter = class
    inherit AttributeAdapterBase<DataTypeAttribute>
Public Class DataTypeAttributeAdapter
Inherits AttributeAdapterBase(Of DataTypeAttribute)
Inheritance

Constructors

DataTypeAttributeAdapter(DataTypeAttribute, String, IStringLocalizer) DataTypeAttributeAdapter(DataTypeAttribute, String, IStringLocalizer) DataTypeAttributeAdapter(DataTypeAttribute, String, IStringLocalizer)

Properties

Attribute Attribute Attribute

Gets the TAttribute instance.

(Inherited from ValidationAttributeAdapter<TAttribute>)
RuleName RuleName RuleName

Methods

AddValidation(ClientModelValidationContext) AddValidation(ClientModelValidationContext) AddValidation(ClientModelValidationContext)
GetErrorMessage(ModelMetadata, Object[]) GetErrorMessage(ModelMetadata, Object[]) GetErrorMessage(ModelMetadata, Object[])

Gets the error message formatted using the Attribute.

(Inherited from ValidationAttributeAdapter<TAttribute>)
GetErrorMessage(ModelValidationContextBase) GetErrorMessage(ModelValidationContextBase) GetErrorMessage(ModelValidationContextBase)

Applies to