RegularExpressionAttributeAdapter RegularExpressionAttributeAdapter RegularExpressionAttributeAdapter Class

Definition

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

Constructors

RegularExpressionAttributeAdapter(RegularExpressionAttribute, IStringLocalizer) RegularExpressionAttributeAdapter(RegularExpressionAttribute, IStringLocalizer) RegularExpressionAttributeAdapter(RegularExpressionAttribute, 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