Used to add a set of event trace log files for processing by ProcessTrace. For a list of all members of this type, see EventTraceProcessLogs Members. System.Object [Visual Basic] Public Class EventTraceProcessLogs Inherits Object [C#] public class EventTraceProcessLogs : Object [C++] public __gc class EventTraceProcessLogs : public Object Example[C#] using System; using WmiSolutions.EventTracing; using WmiSolutions.EventTracing.Consumer; EventTraceLogFile file = new EventTraceLogFile(@"C:\SomeLogFile.etl"); MyHandler handler = new MyHandler(); file.EndOfBuffer += new EndOfBufferEventHandler(handler.EndOfBufferHandler); file.TraceEvent += new TraceEventHandler(handler.TraceEventHandler); EventTraceProcessLogs process = new EventTraceProcessLogs(); process.AddTrace(file); EventTraceOperationObserver observer = new EventTraceOperationObserver(); MyProcessHandler procHandler = new MyProcessHandler(); observer.Completed += new CompletedEventHandler(procHandler.CompletedHandler); process.Process(observer); while (!procHandler.Completed) { Console.WriteLine(" Waiting 1000ms..."); System.Threading.Thread.Sleep(1000); } process.CloseAllTraces(); [Visual Basic] Imports System Imports WmiSolutions.EventTracing Imports WmiSolutions.EventTracing.Consumer Dim file As EventTraceLogFile = New EventTraceLogFile("C:\SomeLogFile.etl") Dim handler As MyHandler = New MyHandler() AddHandler file.EndOfBuffer, AddressOf handler.EndOfBufferHandler AddHandler file.TraceEvent, AddressOf handler.TraceEventHandler Dim process As EventTraceProcessLogs = New EventTraceProcessLogs() process.AddTrace(file) Dim observer As EventTraceOperationObserver = New EventTraceOperationObserver() Dim procHandler As MyProcessHandler = New MyProcessHandler() AddHandler observer.Completed, AddressOf procHandler.CompletedHandler process.Process(observer) While Not procHandler.Completed Console.WriteLine(" Waiting 1000ms...") System.Threading.Thread.Sleep(1000) End While process.CloseAllTraces() RequirementsNamespace: WmiSolutions.EventTracing.Consumer Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family Assembly: WmiSolutions.EventTracing.Consumer (in WmiSolutions.EventTracing.dll)
See AlsoTraceMessageEventArgs Members | TraceEventFieldBitmaskCollection Members | TraceEventFieldBitmask Members | TraceEventField Members | TraceEventArgs Members | EventTraceRealTimeLog Members | EventTraceProcessLogs Members | EventTraceOperationObserver Members | EventTraceMessage Members | EventTraceLogFile Members | EventTraceFieldCollection Members | EventTraceEvent Members | EndOfBufferEventArgs Members | CompletedEventArgs Members |
Contact Me | Developing WMI Solutions | Gwyn Cole's Developer Blog | Legal |
© 2003 Content by Gwyn Cole. All rights reserved. |