Share via


com:ComServer

向一或多個類別註冊註冊 ExeServer。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <com:Extension>

                        <com:ComServer>

                             <com:ComServer>

Syntax

<com:ExeServer
    Executable = 'A string with a value between 1 and 256 characters in length that must end with ".exe" and cannot contain these characters: <, >, :, ", |, ?, or *.'
    Arguments = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
    DisplayName = 'A string with a value between 1 and 256 characters in length. This string is localizable.'
    LaunchAndActivationPermission = '[Optional SDDL string](/windows/win32/secauthz/security-descriptor-string-format).' >

  <!-- Child elements -->
  Class{1,10000}

</com:ExeServer>

答案

{} 特定出現次數範圍

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
可執行檔 相對於封裝根目錄的路徑,而且必須參考封裝中的檔案。 這會指定延伸模組的預設可執行檔。 如果未指定,則會使用為應用程式定義的可執行檔。 如果指定,也會使用 EntryPoint 屬性。 如果未指定 EntryPoint 屬性,則會使用為應用程式定義的 EntryPoint。 長度介於 1 到 256 個字元之間的字串,其結尾必須是 「.exe」,且不能包含下列字元: < 、、 >:" 、、 |?* Yes
引數 LocalServer32索引鍵的引數。 長度介於 1 到 32767 個字元之間的字串,其開頭和結尾具有非空白字元。 No
DisplayName DisplayName 是對應至預設 AppID 索引鍵值的可當地語系化字串。 長度介於 1 到 256 個字元之間的字串。 No
LaunchAndActivationPermission 對應至 AppID 索引鍵之 LaunchPermission 值的選擇性 SDDL 字串 SDDL 字串 No

子元素

子項目 Description
類別 定義 ExeServer 類別註冊。

父元素

父元素 描述
com:ComServer 宣告 windows.comServer類型的套件延伸點。 comServer延伸模組可能包含四種類型的註冊:ExeServerSurrogateServerProgIdTreatAsClass

備註

ExeServer可以有一或多個類別註冊。 如果LocalServer32 金鑰相符,而且它們具有相同的 AppID (,或沒有AppID) ,除非它們必須在不同的應用程式/應用程式資訊清單元素下註冊,否則多個類別註冊應該共用ExeServer

ExeServer 註冊會對應至 LocalServer32 金鑰 及其相關聯的 AppID 金鑰

可執行檔引數屬性會對應至LocalServer32索引鍵的預設值。

規格需求

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