VersionAttribute VersionAttribute VersionAttribute VersionAttribute Class

Indicates the version of the type.

Syntax

Declaration

public sealed class VersionAttributepublic sealed class VersionAttributePublic NotInheritable Class VersionAttribute

Constructors summary

Creates and initializes a new instance of the attribute.

Creates and initializes a new instance of the attribute.

Constructors

  • VersionAttribute(System.UInt32)
    VersionAttribute(System.UInt32)
    VersionAttribute(System.UInt32)
    VersionAttribute(System.UInt32)

    Creates and initializes a new instance of the attribute.

    public VersionAttribute(System.UInt32 version)public VersionAttribute(System.UInt32 version)Public Function VersionAttribute(version As System.UInt32) As

    Parameters

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

      The version to associate with the marked object.

  • VersionAttribute(System.UInt32,Windows.Foundation.Metadata.Platform)
    VersionAttribute(System.UInt32,Windows.Foundation.Metadata.Platform)
    VersionAttribute(System.UInt32,Windows.Foundation.Metadata.Platform)
    VersionAttribute(System.UInt32,Windows.Foundation.Metadata.Platform)

    Creates and initializes a new instance of the attribute.

    public VersionAttribute(System.UInt32 version,Windows.Foundation.Metadata.Platform platform)public VersionAttribute(System.UInt32 version,Windows.Foundation.Metadata.Platform platform)Public Function VersionAttribute(version As System.UInt32,platform As Windows.Foundation.Metadata.Platform) As

    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.ContractVersionAttribute
Windows.Foundation.Metadata.AttributeUsageAttribute
Windows.Foundation.Metadata.AllowMultipleAttribute

Details

Assembly

Windows.Foundation.Metadata.dll