desktop6:Service

アプリと共にインストールおよび登録されるサービスを指定します。 これらのサービスは、ローカル サービス、ネットワーク サービス、またはローカル システム アカウントのいずれかで実行するように構成できます。

要素の階層

<パッケージ>

    <アプリケーション>

         <Application>

              <拡張機能>

                   <desktop6:Extension>

                        <desktop6:Service>

構文

<desktop6:Service
    Name = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
    StartupType = 'A string that can be one of the following values: "auto", "manual", "disabled", or "delayedStart".'
    StartAccount = 'A string that can be one of the following values: "localSystem", "localService", or "networkService".'
    Arguments = 'An optional string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.' >

    desktop6:Dependencies?
    desktop6:TriggerEvents?

</desktop6:Service>

キー

? 省略可能 (0 または 1)

属性と要素

属性

属性 説明 データ型 必須 既定値
名前 サービスの名前。 長さが 1 ~ 32767 文字の文字列で、先頭と末尾に空白文字以外の文字が含まれます。 Yes
StartupType サービスのスタートアップの種類。 automanualdisableddelayedStart のいずれかの値を指定できる文字列。 Yes
StartAccount サービスを実行するアカウントの種類。 localSystemlocalServices、または networkService のいずれかの値を指定できる文字列。 Yes
引数 サービスに渡す省略可能な引数。 長さが 1 ~ 32767 文字の値を持つ省略可能な文字列で、先頭と末尾に空白文字以外の文字が含まれます。 いいえ

子要素

子要素 説明
desktop6:Dependencies 1 つ以上の依存サービスを指定します。
desktop6:TriggerEvents サービスの 1 つ以上のトリガー イベントを指定します。

親要素

親要素 説明
拡張子 アプリケーションの機能拡張ポイントを定義します。

注釈

この要素には、 packagedServices または localSystemServicesの制限付き機能が必要です。

必要条件

Item
名前空間 http://schemas.microsoft.com/appx/manifest/desktop/windows10/6
Minimum OS Version Windows 10 バージョン 1903 (ビルド 18362)