FileExtensionsAttributeAdapter FileExtensionsAttributeAdapter FileExtensionsAttributeAdapter Class

Definition

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

Constructors

FileExtensionsAttributeAdapter(FileExtensionsAttribute, IStringLocalizer) FileExtensionsAttributeAdapter(FileExtensionsAttribute, IStringLocalizer) FileExtensionsAttributeAdapter(FileExtensionsAttribute, 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