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)

특성의 새 instance 만들고 초기화합니다.

PreviousContractVersionAttribute(String, UInt32, UInt32, String)

특성의 새 instance 만들고 초기화합니다.

PreviousContractVersionAttribute(Type, UInt32, UInt32)

특성의 새 instance 만들고 초기화합니다.

PreviousContractVersionAttribute(Type, UInt32, UInt32, Type)

특성의 새 instance 만들고 초기화합니다.

적용 대상