VersionAttribute VersionAttribute VersionAttribute VersionAttribute Class

Indicates the version of the type.

Syntax

Declaration

public sealed class VersionAttributepublic sealed class VersionAttributePublic NotInheritable Class VersionAttributepublic sealed class VersionAttribute

Constructors summary

Creates and initializes a new instance of the attribute.

Creates and initializes a new instance of the attribute.

Constructors

  • VersionAttribute(UInt32)
    VersionAttribute(UInt32)
    VersionAttribute(UInt32)
    VersionAttribute(UInt32)

    Creates and initializes a new instance of the attribute.

    public VersionAttribute(UInt32 version)public New(UInt32 version)Public Sub New(version As UInt32)public VersionAttribute(UInt32 version)

    Parameters

    • version
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The version to associate with the marked object.

  • VersionAttribute(UInt32, Platform)
    VersionAttribute(UInt32, Platform)
    VersionAttribute(UInt32, Platform)
    VersionAttribute(UInt32, Platform)

    Creates and initializes a new instance of the attribute.

    public VersionAttribute(UInt32 version, Platform platform)public New(UInt32 version, Platform platform)Public Sub New(version As UInt32, platform As Platform)public VersionAttribute(UInt32 version, Platform platform)

    Parameters

    • version
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The version to associate with the marked object.

    • platform

      A value of the enumeration. The default is Windows.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.FoundationContract (introduced v1)

Attributes

Windows.Foundation.Metadata.AllowMultipleAttribute
Windows.Foundation.Metadata.AttributeUsageAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Foundation.Metadata.dll