AttributeNameAttribute 类

定义

指示属性的名称

public ref class AttributeNameAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 262144)]
class AttributeNameAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 262144)]
public sealed class AttributeNameAttribute : Attribute
function AttributeNameAttribute(A_0)
Public NotInheritable Class AttributeNameAttribute
Inherits Attribute
继承
AttributeNameAttribute
属性

Windows 要求

设备系列
Windows 10, version 2004 (在 10.0.19041.0 中引入)
API contract
Windows.Foundation.FoundationContract (在 v4.0 中引入)

构造函数

AttributeNameAttribute(String)

创建并初始化 特性的新实例。

适用于