Share via


desktop8:Provider

向事件追蹤註冊提供者,並啟用其功能。

元素階層

<套件>

    <擴充功能>

         <desktop8:Extension>

              <desktop8:EventTracing>

                   <desktop8:Provider>

Syntax

<desktop8:Provider
  Id = 'A hexadecimal string that may only contain the following values: "0-9" or "A-F" (uppercase or lowercase) representing the unique identifier of the provider.'
  Name = 'A string with a value between 1 and 2084 characters in length that represents the name of the provider.'
  ResourceFile = 'A string value where the first character cannot contain any of the following: ".", "/", "\", or a space. Represents the path to a file.'
  MessageFile = 'A string value where the first character cannot contain any of the following: ".", "/", "\", or a space. Represents the path to a file.' >

  <!-- Child Elements -->
  desktop8:Channels

</desktop8:Provider>

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
Id 提供者的唯一識別碼。 只包含下列值的十六進位字串:「0-9」 或 「A-F」 (大寫或小寫) 表示提供者的唯一識別碼。 Yes
名稱 提供者的名稱。 長度介於 1 到 2084 個字元之間的字串,表示提供者的名稱。 Yes
ResourceFile 指定提供者資源檔的路徑。 字串值,其中第一個字元不能包含下列任何一項: ./\ 或空格。 表示檔案的路徑。 Yes
MessageFile 指定提供者訊息檔的路徑。 字串值,其中第一個字元不能包含下列任何一項: ./\ 或空格。 表示檔案的路徑。 No

子元素

子項目 描述
desktop8:Channels 允許針對事件追蹤指定一或多個通道。

父元素

父元素 描述
desktop8:EventTracing 讓您的傳統型應用程式能夠即時取用應用程式定義的事件,或儲存至記錄檔。

規格需求

Item
命名空間 http://schemas.microsoft.com/appx/manifest/desktop/windows10/8
OS 最低版本 Windows 11版本 21H2 (組建 22000)