TraceReaderWriter Class

The TraceReaderWriter class is an abstract Trace Objects class that is used in the construction of the TraceTable class and the TraceFile class.

Namespace: Microsoft.SqlServer.Management.Trace
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Class TraceReaderWriter
    Inherits TraceReader
    Implements ITraceDataWriter
[ComVisibleAttribute(false)] 
public class TraceReaderWriter : TraceReader, ITraceDataWriter
[ComVisibleAttribute(false)] 
public ref class TraceReaderWriter : public TraceReader, ITraceDataWriter
/** @attribute ComVisibleAttribute(false) */ 
public class TraceReaderWriter extends TraceReader implements ITraceDataWriter
ComVisibleAttribute(false) 
public class TraceReaderWriter extends TraceReader implements ITraceDataWriter

Remarks

The TraceReaderWriter class provides trace data writing functionality that is common to both the TraceTable class and the TraceFile class.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Management.Trace.TraceReader
    Microsoft.SqlServer.Management.Trace.TraceReaderWriter
       Microsoft.SqlServer.Management.Trace.TraceFile
       Microsoft.SqlServer.Management.Trace.TraceTable

Example

Readme_Tracer

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

TraceReaderWriter Members
Microsoft.SqlServer.Management.Trace Namespace

Other Resources

Trace Flags (Transact-SQL)
Using SQL Server Profiler