Share via


com4:ServiceServer

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

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <com4:ServiceServer>

Syntax

<com4:ServiceServer
  ServiceName = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
  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 = 'An [SDDL string](/windows/win32/secauthz/security-descriptor-string-format) value.' >

  <!-- Child elements -->
  Class
  ClassReference

</com4:ServiceServer>

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
ServiceName 裝載 COM 伺服器的 Windows 服務名稱。 長度介於 1 到 32767 個字元之間的字串,其開頭和結尾為非空白字元。 Yes
引數 服務的命令列參數。 長度介於 1 到 32767 個字元之間的字串,其開頭和結尾為非空白字元。 Yes
DisplayName 對應至預設 AppID 索引鍵值的可當地語系化字串。 長度介於 1 到 256 個字元之間的字串。 Yes
LaunchAndActivationPermission 對應至 AppID 索引鍵之 LaunchPermission 值的 SDDL 字串 SDDL 字串值。 Yes

子元素

子項目 Description
類別 定義 ExeServer 類別註冊。
ClassReference 指定與已註冊 ExeServer 相關聯的類別,並設定 ExeServer 特定的註冊詳細資料。

父元素

父元素 描述
延伸模組 定義應用程式的一或多個擴充點。

規格需求

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