Share via


com3:ProgId

與 CLSID 相關聯的程式設計識別碼 (ProgID) 。 ProgID 會識別類別,但精確度低於 CLSID,因為它不保證是全域唯一的。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <com2:Extension>

                        <com2:ComServer>

                             <com3:ProgId>

Syntax

<com3:ProgId 
    Id = 'An alphanumeric string separated by a period with a value between 1 and 255 characters in length (for example, Foo.Bar or Foo.Bar.1).'
    Clsid = 'An optional GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
    CurrentVersion = 'An optional alphanumeric string separated by a period with a value between 1 and 255 characters in length (for example, Foo.Bar or Foo.Bar.1).' />

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
Id ProgID 的識別碼。 以長度介於 1 到 255 (個字元的句號分隔的英數位元字串,例如,Foo.Bar 或 Foo.Bar.1) 。 Yes
Clsid 建立 ProgID 與 CLSID 的關聯。 xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx 格式的選擇性 GUID。 No
CurrentVersion ProgID 的版本。 選擇性英數位元字串,以長度介於 1 到 255 (個字元之間的句點分隔,例如,Foo.Bar 或 Foo.Bar.1) 。 No

子元素

無。

父元素

父元素 描述
com2:ComServer 宣告 windows.comServer類型的套件延伸點。 comServer延伸模組可能包含下列類型的註冊:ServiceServerExeServerSurrogateServerProgIdTreatAsClass

備註

Clsid屬性必須參考相同ComServer延伸模組內 ExeServer 類別、SurrogateServer 類別或 TreatAsClass 註冊的Id屬性。

如需 ProgID 的詳細資訊,請參閱< ProgID > 金鑰

注意

Clsid 和 CurrentVersion 互斥,但至少必須提供一個。

規格需求

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