Share via


TraceFile.InitializeAsWriter(TraceReader, String) Method

Definition

Initializes the specified TraceFile object for reading trace data from a TraceReader object, analyzing the data, and writing data the referenced trace log file.

public:
 void InitializeAsWriter(Microsoft::SqlServer::Management::Trace::TraceReader ^ source, System::String ^ destinationFileName);
public void InitializeAsWriter (Microsoft.SqlServer.Management.Trace.TraceReader source, string destinationFileName);
member this.InitializeAsWriter : Microsoft.SqlServer.Management.Trace.TraceReader * string -> unit
Public Sub InitializeAsWriter (source As TraceReader, destinationFileName As String)

Parameters

source
TraceReader

A TraceReader object that specifies the trace log file that contains trace data. This object can represent a trace table or a trace file.

destinationFileName
String

A String value that specifies the destination trace log file in which to write the new trace data.

Examples

Readme_Tracer

Applies to