AttributeUsageAttribute 類別

定義

指定另一個屬性的使用方式。

。網 此類型會顯示為 System.AttributeUsageAttribute

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

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.FoundationContract (已於 v1.0 引進)

備註

使用 .NET 進行程式設計時,這個屬性會隱藏,開發人員應該使用 System.AttributeUsageAttribute

建構函式

AttributeUsageAttribute(AttributeTargets)

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

適用於

另請參閱