Share via


desktop2:DesktopEventLogging

讓 Windows 傳統型橋接器應用程式註冊 Windows 事件記錄。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   desktop2:Extension

                        <desktop2:DesktopEventLogging>

Syntax

<desktop2:DesktopEventLogging
  AppName = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.' >

  <!-- Child elements -->
  desktop2:EventMessageFiles
  desktop2:TypesSupported

</desktop2:DesktopEventLogging>

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
AppName 將使用傳統型事件記錄的應用程式名稱。 長度介於 1 到 32767 個字元之間的字串,其開頭和結尾具有非空白字元。 Yes

子元素

子項目 描述
EventMessageFiles 包含事件訊息檔案。
TypesSupported 包含支援的事件記錄檔類型。

父元素

父元素 描述
desktop2:Extension 宣告應用程式的擴充點。

規格需求

Item
命名空間 http://schemas.microsoft.com/appx/manifest/desktop/windows10/2
OS 最低版本 Windows 10版本 1703 (組建 15063)