共用方式為


EventProviderId

Applies To: Windows 8, Windows 8.1

Represents an event provider identifier for the profile.

Element Hierarchy

<WindowsPerformanceRecorder>
     <Profiles>
          <Profile>
               <Collectors>
                    <EventCollectorId>
                         <EventProviders>
                               <EventProviderId>

Syntax

<EventProviderId Value = IdType>

  <!-- Child elements -->
  Keywords,
  CaptureStateOnStart,
  CaptureStateOnSave

</EventProviderId>

Attributes and Elements

Attributes

Attribute Description Data type Required Default

Value

Uniquely identifies the event provider.

String that must have at least one character and cannot contain colons (:) or spaces.

Yes

Child Elements

Element Description Requirement

Keywords (in EventProvider)

Represents a collection of keywords.

Required, 1 or more. Use 0x0 as a keyword to include all events.

CaptureStateOnStart

Represents a collection of keywords that describe events to be captured at the start of a recording.

Optional, zero or 1.

CaptureStateOnSave

Represents a collection of keywords that describe events to be captured when a recording is saved.

Optional, zero or 1.

Parent Elements

Element Description

EventProviders

Represents a collection of event providers and event provider identifiers.

Example

For managed scenarios, use the following event provider definition.

<EventCollectorId Value ="WPAEventCollector">
  <EventProviders>
    <EventProviderId Value="EventProvider_DotNetProvider" />
    <EventProvider Name="Microsoft-Windows-WPA" Id="Microsoft-Windows-WPA" Stack="true">
    </EventProvider>
  </EventProviders>
</EventCollectorId>

See Also

Other Resources

Elements