Partager via


EventProviders

Applies To: Windows 8, Windows 8.1

Represents a collection of event provider identifiers and event providers.

Element Hierarchy

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

Syntax

<EventProviders Operation = "Set" | "Add" | “Remove”>

  <!-- Child elements -->
  EventProviderId,
  EventProvider

</EventProviders>

Attributes and Elements

Attributes

Attribute Description Data type Required Default

Operation

Indicates whether event providers should be set or added.

This attribute can have one of the following values:

  • Set

  • Add

  • Remove

No

Set

Child Elements

Element Description Requirement

EventProviderId

Represents an event provider identifier.

Optional, zero or more.

EventProvider

Represents an event provider.

Optional, zero or more.

Parent Elements

Element Description

EventCollectorId

Represents an event collector identifier.

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