Udostępnij za pośrednictwem


ApiContractAttribute Class

Definition

Specifies that the type represents an API contract.

public ref class ApiContractAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Enum)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class ApiContractAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Enum)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class ApiContractAttribute : Attribute
function ApiContractAttribute()
Public NotInheritable Class ApiContractAttribute
Inherits Attribute
Inheritance
ApiContractAttribute
Attributes

Windows requirements

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

Constructors

ApiContractAttribute()

Creates and initializes a new instance of the attribute.

Applies to