.NET Event Tracing Class Library  

EventTraceProviderCollection Class

Represents collections of currently registered event tracing providers retrieved through the event tracing API, EnumerateTraceGuids. The objects in this collection are of the EventTraceRegisteredProvider type.

For a list of all members of this type, see EventTraceProviderCollection Members.

System.Object
    WmiSolutions.EventTracing.Controller.EventTraceProviderCollection

[Visual Basic]
Public Class EventTraceProviderCollection 
    Inherits Object 
    Implements ICollection 
    Implements IEnumerable
[C#]
public class EventTraceProviderCollection : 
    Object, 
    ICollection, 
    IEnumerable
[C++]
public __gc class EventTraceProviderCollection : 
    public Object,
    public ICollection,
    public IEnumerable

Example

[C#]
    using System;
    using WmiSolutions.EventTracing;
    using WmiSolutions.EventTracing.Controller;

    EventTraceProviderCollection provCollection =
        EventTraceProvider.Providers;
        
    foreach(EventTraceRegisteredProvider prov in provCollection)
    {
        Console.WriteLine("Provider Guid  {0}", prov.ProviderGuid);
	Console.WriteLine( "Provider Name {0}", prov.Name);
	Console.WriteLine("Provider Description {0}", prov.Description);
    }
    
[Visual Basic]
    Imports System
    Imports System
    Imports WmiSolutions.EventTracing
    Imports WmiSolutions.EventTracing.Controller
 
    EventTraceProviderCollection provCollection = 
        EventTraceProvider.Providers
 
    Dim prov As EventTraceRegisteredProvider
    For Each prov In provCollection
        Console.WriteLine("Provider Guid  {0}", prov.ProviderGuid)
        Console.WriteLine("Provider Name {0}",prov.Name)
        Console.WriteLine("Provider Description {0}", prov.Description)
    Next
    

Requirements

Namespace: WmiSolutions.EventTracing.Controller

Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: WmiSolutions.EventTracing.Controller (in WmiSolutions.EventTracing.dll)

 

See Also

EventTraceSessionCollection Members | EventTraceSession Members | EventTraceRegisteredProvider Members | EventTraceProviderCollection Members | EventTraceProvider Members | EventTraceKernelSession Members

Contact Me   |  Developing WMI Solutions    |   Gwyn Cole's Developer Blog    |   Legal
 © 2003 Content by Gwyn Cole. All rights reserved.