This class allows event tracing sessions to be created, controlled, queried and terminated. An event tracing session is associated only with a single event tracing provider. For a list of all members of this type, see EventTraceSession Members. System.Object [Visual Basic] Public Class EventTraceSession Inherits Object [C#] public class EventTraceSession : Object [C++] public __gc class EventTraceSession : public Object Example[C#] using System; using WmiSolutions.EventTracing; using WmiSolutions.EventTracing.Controller; EventTraceSession session = new EventTraceSession( "LiftSim Session", @"C:\MyEventTraceProvider.etl", EventTraceLoggingModes.FileModeSequential); // Set the guid of the event trace provider session.TraceGuid = "{8D316659-850B-4a3e-B79D-0F300A80EF5B}"; session.Start(); // Event trace provider's must be told to start tracing events! session.EnableProviderTrace(true, 0, 0); ... .. .. session.Stop(); [Visual Basic] Imports System Imports System Imports WmiSolutions.EventTracing Imports WmiSolutions.EventTracing.Controller EventTraceSession session = New EventTraceSession( "LiftSim Session", "C:\MyEventTraceProvider.etl", EventTraceLoggingModes.FileModeSequential) ' Set the guid of the event trace provider session.TraceGuid = "{8D316659-850B-4a3e-B79D-0F300A80EF5B}" session.Start() ' Event trace provider's must be told to start tracing events! session.EnableProviderTrace(True, 0, 0) ... .. .. session.Stop() RequirementsNamespace: WmiSolutions.EventTracing.Controller Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family Assembly: WmiSolutions.EventTracing.Controller (in WmiSolutions.EventTracing.dll)
See AlsoEventTraceSessionCollection 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. |