.NET Event Tracing Class Library  

EventTraceProvider Class

Offers event tracing provider services. Currently, this has only one static property which returns a collection of currently registered event tracing providers.

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

System.Object
    WmiSolutions.EventTracing.Controller.EventTraceProvider

[Visual Basic]
Public Class EventTraceProvider Inherits Object
[C#]
public class EventTraceProvider : Object
[C++]
public __gc class EventTraceProvider : public Object

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.