RangeAttributeAdapter RangeAttributeAdapter RangeAttributeAdapter Class

Definition

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

Constructors

RangeAttributeAdapter(RangeAttribute, IStringLocalizer) RangeAttributeAdapter(RangeAttribute, IStringLocalizer) RangeAttributeAdapter(RangeAttribute, IStringLocalizer)

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)

Properties

Attribute Attribute Attribute

Gets the TAttribute instance.

(Inherited from ValidationAttributeAdapter<TAttribute>)

Applies to