com:包/扩展) 中的版本 (

有关类型库的版本号和其他信息。

元素层次结构

<包>

    <扩展>

         <com:Extension>

              <com:ComInterface>

                   <com:Interface>

                        <com:TypeLib>

                             <com:Version>

语法

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

  <!-- Child elements -->
  Win32Path?,
  Win64Path?

</com:Version>

密钥

? 可选 (零个或一个)

特性和元素

属性

属性 说明 数据类型 必须 默认值
VersionNumber 版本号的名称。 一个字符串,其值介于 1 到 3 个字母数字字符之间,用句点分隔,后跟 1 到 3 个字母数字字符 (例如 1.5a) 。
LocaleId 表示地理位置的 ID。 十六进制格式的可选字符串,包含数字或字母 a、b、c、d、e 或 f (大写或小写) 。
LibraryFlag LIBFLAGS 枚举中的整数值。 十六进制格式的可选字符串,包含数字或字母 a、b、c、d、e 或 f (大写或小写) 。
HelpDirectory HELPDIR 子项。 一个字符串,其值长度介于 1 到 32767 个字符之间,开头和结尾处为非空格字符。

子元素

子元素 描述
Win32Path 32 位类型库的路径。
Win64Path 64 位类型库的路径。

父元素

父元素 描述
com:TypeLib 注册类型库。

注解

有关此页上的类型库和属性的详细信息,请参阅 注册类型库

注意

必须同时指定 Win32Path 和 Win64Path。

要求

命名空间 http://schemas.microsoft.com/appx/manifest/com/windows10
Minimum OS Version Windows 10版本 1703 (内部版本 15063)