EventType 複雜類型

定義事件架構的根節點。

<xs:complexType name="EventType">
    <xs:sequence>
        <xs:element name="System"
            type="SystemPropertiesType"
         />
        <xs:choice>
            <xs:element name="EventData"
                type="EventDataType"
                minOccurs="0"
             />
            <xs:element name="UserData"
                type="UserDataType"
                minOccurs="0"
             />
            <xs:element name="DebugData"
                type="DebugDataType"
                minOccurs="0"
             />
            <xs:element name="BinaryEventData"
                type="hexBinary"
                minOccurs="0"
             />
            <xs:element name="ProcessingErrorData"
                type="ProcessingErrorDataType"
                minOccurs="0"
             />
        </xs:choice>
        <xs:element name="RenderingInfo"
            type="RenderingInfoType"
            minOccurs="0"
         />
        <xs:any
            minOccurs="0"
            maxOccurs="unbounded"
            processContents="lax"
            namespace="##other"
         />
    </xs:sequence>
    <xs:anyAttribute
        processContents="lax"
        namespace="##other"
     />
</xs:complexType>

子元素

元素 類型 描述
BinaryEventData hexBinary 包含事件資料做為二進位 Blob。 如果轉譯函式找不到用來解碼事件的中繼資料,事件資料會轉譯為二進位 Blob。
DebugData DebugDataType 包含可記錄 Windows 軟體追蹤預處理器 (WPP) 事件的資料。
EventData EventDataType 包含事件資料。 範本中的資料項目順序會決定事件資料的版面配置。
ProcessingErrorData ProcessingErrorDataType 包含嘗試轉譯事件時所發生的錯誤詳細資料。 如果事件資料不符合資訊清單中的事件資料定義,就會發生這種情況。 事件資料會包含為二進位 Blob。
RenderingInfo RenderingInfoType 包含事件轉譯的訊息字串, (包含事件的訊息字串,以及事件屬性的訊息字串,例如層級、工作和 opcode) 。 只有使用 Windows 事件收集器 服務收集的事件才會包含本節。
系統 SystemPropertiesType 包含可識別提供者及其啟用方式、事件、寫入事件的通道,以及進程和執行緒識別碼等系統資訊的資訊。
UserData UserDataType 包含事件資料。 範本的使用者資料區段會決定事件資料的版面配置。

備註

一般而言,本節將包含 EventDataUserData 區段。 如果範本不包含UserData區段,則會使用EventData區段。

規格需求

需求
最低支援的用戶端
Windows Vista [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 [僅限傳統型應用程式]