通过


DisplayName<TValue> 类

定义

显示指定字段的显示名称、读取 DisplayAttribute 位置或 DisplayNameAttribute 显示位置(如果存在)或回退到属性名称。

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

类型参数

TValue

字段的类型。

继承
DisplayName<TValue>
实现

构造函数

名称 说明
DisplayName<TValue>()

显示指定字段的显示名称、读取 DisplayAttribute 位置或 DisplayNameAttribute 显示位置(如果存在)或回退到属性名称。

属性

名称 说明
For

指定显示名称应显示的字段。

显式接口实现

名称 说明
IComponent.Attach(RenderHandle)

将组件附加到 .RenderHandle

IComponent.SetParametersAsync(ParameterView)

设置组件父级在呈现树中提供的参数。

适用于