Share via


com:Version

類型程式庫的版本號碼和其他資訊。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <com:Extension>

                        <com:ComInterface>

                             <com:TypeLib>

                                  <com:Version>

Syntax

<com:Version
  VersionNumber = '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 with a value in hexadecimal format containing numbers or the letters a, b, c, d, e, or f (capital or lower case)'.
  LibraryFlag = 'An optional string with a value in hexadecimal format containing numbers or the letters a, b, c, d, e, or f (capital or lower case).'
  HelpDirectory = 'An optional 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.5a) 。 Yes
LocaleId 代表地理位置的識別碼。 具有十六進位格式值的選擇性字串,其中包含數位或字母 、、、 c 、、 def (大寫 a 或小 b 寫) No
LibraryFlag LIBFLAGS列舉中的整數值。 具有十六進位格式值的選擇性字串,其中包含數位或字母 、、、 c 、、 def (大寫 a 或小 b 寫) No
HelpDirectory HELPDIR 子機碼。 長度介於 1 到 32767 個字元的選擇性字串,其開頭和結尾為非空白字元。 No

子元素

子元素 描述
Win32Path 32 位類型程式庫的路徑。
Win64Path 64 位類型程式庫的路徑。

父元素

Parent 項目 Description
com:TypeLib 註冊類型程式庫。

備註

您必須指定 Win32Path 或 Win64Path,而且可以同時指定這兩者。 如果從 32 位和 64 位架構的用戶端進程使用介面,產生和註冊型別程式庫的 32 位和 64 位格式,可以改善其介面的效能。

規格需求

Item
Namespace http://schemas.microsoft.com/appx/manifest/com/windows10
OS 最低版本 Windows 10版本 1703 (組建 15063)