PreviousContractVersionAttribute Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that the type was previously associated with a different API contract.
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
- Inheritance
-
PreviousContractVersionAttribute
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.FoundationContract (introduced in v1.0)
|
This attribute is present if a type has been moved from one API contract to another type. It expresses the history of the type in relation to the API contracts in which it has existed.
Previous |
Creates and initializes a new instance of the attribute. |
Previous |
Creates and initializes a new instance of the attribute. |
Previous |
Creates and initializes a new instance of the attribute. |
Previous |
Creates and initializes a new instance of the attribute. |