Share via


DisplayName<TValue> Class

Definition

Displays the display name for a specified field, reading from DisplayAttribute or DisplayNameAttribute if present, or falling back to the property name.

public class DisplayName<TValue> : Microsoft.AspNetCore.Components.IComponent
type DisplayName<'Value> = class
    interface IComponent
Public Class DisplayName(Of TValue)
Implements IComponent

Type Parameters

TValue

The type of the field.

Inheritance
DisplayName<TValue>
Implements

Constructors

Name Description
DisplayName<TValue>()

Properties

Name Description
For

Specifies the field for which the display name should be shown.

Explicit Interface Implementations

Name Description
IComponent.Attach(RenderHandle)

Attaches the component to a RenderHandle.

IComponent.SetParametersAsync(ParameterView)

Sets parameters supplied by the component's parent in the render tree.

Applies to