共用方式為


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 需求

規格需求 Description
裝置系列
Windows 10, version 2004 (已於 10.0.19041.0 引進)
API contract
Windows.Foundation.FoundationContract (已於 v4.0 引進)

建構函式

名稱 Description
AttributeNameAttribute(String)

建立並初始化 屬性的新實例。

適用於