AttributeUsageAttribute Class

Definition

Specifies the use of another attribute.

.NET This type appears as 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 sealed : 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
Inheritance
AttributeUsageAttribute
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced in v1.0)

Remarks

When programming with .NET, this attribute is hidden and developers should use System.AttributeUsageAttribute.

Constructors

AttributeUsageAttribute(AttributeTargets)

Creates and initializes a new instance of the attribute.

Applies to

See also