PreviousContractVersionAttribute クラス

定義

型が以前に別の API コントラクトに関連付けられたことを示します。

public ref class PreviousContractVersionAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AllowMultiple]
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.InterfaceImpl | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.RuntimeClass | System.AttributeTargets.Struct)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class PreviousContractVersionAttribute final : Attribute
[Windows.Foundation.Metadata.AllowMultiple]
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.InterfaceImpl | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.RuntimeClass | System.AttributeTargets.Struct)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class PreviousContractVersionAttribute : Attribute
function PreviousContractVersionAttribute(contract, versionLow, versionHigh, newContract)
Public NotInheritable Class PreviousContractVersionAttribute
Inherits Attribute
継承
PreviousContractVersionAttribute
属性

Windows の要件

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

注釈

この属性は、ある API コントラクトから別の型に型が移動された場合に存在します。 これは、存在している API コントラクトに関連する型の履歴を表します。

コンストラクター

PreviousContractVersionAttribute(String, UInt32, UInt32)

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

PreviousContractVersionAttribute(String, UInt32, UInt32, String)

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

PreviousContractVersionAttribute(Type, UInt32, UInt32)

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

PreviousContractVersionAttribute(Type, UInt32, UInt32, Type)

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

適用対象