Edit

com:Version

Version number and additional information about the type library.

Element hierarchy

<Package>
   └─ <Extensions>
      └─ <com:Extension>
         └─ <com:ComInterface>
            └─ <com:TypeLib>
               └─ <com:Version>
   └─ <Applications>
      └─ <Application>
         └─ <Extensions>
            └─ <com:Extension>
               └─ <com:ComInterface>
                  └─ <com:TypeLib>
                     └─ <com:Version>

Syntax

<com:Version
  VersionNumber = 'A required one to three alphanumeric characters separated by a period followed by one to three more alphanumeric characters, e.g., 1.5a'
  LocaleId = 'An optional string in hexadecimal format containing numbers or the letters a, b, c, d, e, f (capital or lower case).'
  LibraryFlag = 'An optional string in hexadecimal format containing numbers or the letters a, b, c, d, e, f (capital or lower case).'
  HelpDirectory = 'An optional string between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
  DisplayName = 'An optional string between 1 and 256 characters in length. This string is localizable.' >

  <!-- Child elements -->
  com:Win32Path?
  com:Win64Path?

</com:Version>

Key

? optional (zero or one)

Attributes

Attribute Description Data type Required Default value
VersionNumber The name of the version number. A one to three alphanumeric characters separated by a period followed by one to three more alphanumeric characters, e.g., 1.5a Yes
LocaleId An Id representing geographic location. An optional string in hexadecimal format containing numbers or the letters a, b, c, d, e, f (capital or lower case). No 0
LibraryFlag An integer value from the LIBFLAGS enumeration. An optional string in hexadecimal format containing numbers or the letters a, b, c, d, e, f (capital or lower case). No
HelpDirectory The HELPDIR subkey. An optional string between 1 and 32767 characters in length with a non-whitespace character at its beginning and end. No
DisplayName An optional string between 1 and 256 characters in length. This string is localizable. No

Child elements

Child element Description
com:Win32Path A path to the 32-bit type library.
com:Win64Path A path to the 64-bit type library.

Parent elements

Parent element Description
com:TypeLib

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/com/windows10
Minimum OS Version Windows 10 version 1703 (Build 15063)

Remarks

You must specify either a Win32Path or a Win64Path, and can specify both. Generating and registering both 32-bit and 64-bit formats for a type library can improve performance if its interfaces are used from client processes of both 32-bit and 64-bit architectures.

For more information about type libraries and the attributes on this page, see Registering a Type Library.

Examples