ApiContractAttribute クラス

定義

型が API コントラクトを表していることを指定します。

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
継承
ApiContractAttribute
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.FoundationContract (v1.0 で導入)

コンストラクター

ApiContractAttribute()

属性の新しいインスタンスを作成して初期化します。

適用対象