Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TraceReader Class

The TraceReader class is an abstract Trace Object class that is used in the construction of the TraceServer class, the TraceTable class, and the TraceFile class.

Namespace:  Microsoft.SqlServer.Management.Trace
Assembly:  Microsoft.SqlServer.ConnectionInfoExtended (in Microsoft.SqlServer.ConnectionInfoExtended.dll)
[ComVisibleAttribute(false)]
public class TraceReader : IDataReader, 
	IDisposable, IDataRecord

The TraceReader type exposes the following members.

  NameDescription
Public methodTraceReaderInitializes a new instance of the TraceReader class.
Top
  NameDescription
Public propertyDepthGets the depth value for the trace reader.
Public propertyFieldCountGets the number of columns in the data.
Public propertyIsClosedGets the Boolean property value that specifies whether the trace reader is closed.
Public propertyItem[Int32]Gets the column specified by the index position.
Public propertyItem[String]Gets the column with the specified name.
Public propertyRecordsAffectedGets the number of records of data.
Top
  NameDescription
Public methodCloseCloses the trace reader.
Public methodDisposeDeletes the trace reader information.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBooleanReturns a Boolean value from the record at the specified column position.
Public methodGetByteReturns a Byte value from the record at the specified column position.
Public methodGetBytesGets a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.
Public methodGetCharGets a character value of the specified column.
Public methodGetChars(Int32, Char[], Int32, Int32, Int32)Gets a character array value from the record at the specified column position.
Public methodGetChars(Int32, Int64, Char[], Int32, Int32)Gets a character array value from the record at the specified column position.
Public methodGetDataReturns IDataReader object used when the field points to a remote data structure.
Public methodGetDataTypeNameGets the data type of the data value at the specified column position.
Public methodGetDateTimeGets a DateTime value of the data value at the specified column position.
Public methodGetDecimalGets a Decimal value of the data value at the specified column position.
Public methodGetDoubleGets a floating point value of the data value at the specified column position.
Public methodGetFieldTypeReturns the field type of the data value at the specified column position.
Public methodGetFloatGets a floating point value of the data value at the specified column position.
Public methodGetGuidGets a Guid system value of the data value at the specified column position.
Public methodGetHashCode (Inherited from Object.)
Public methodGetInt16Gets a small integer value of the data value at the specified column position.
Public methodGetInt32Gets an integer value of the data value at the specified column position.
Public methodGetInt64Gets a long integer value of the data value at the specified column position.
Public methodGetNameGets the name of the field at the specified column position.
Public methodGetOrdinalGets the ordinal value of the data value at the specified column position.
Public methodGetSchemaTableGets a table that describes the schema.
Public methodGetStreamGets the stream of data.
Public methodGetStringGets a String value at the specified column position.
Public methodGetTimeSpanGets a TimeSpan value of the data value at the specified column position.
Public methodGetType (Inherited from Object.)
Public methodGetValueGets a value of the data value at the specified column position.
Public methodGetValuesGets an array of values from the data value at the specified column position.
Public methodIsDBNullSpecifies whether the specified column is set to null.
Public methodIsNullGets a Boolean value that specifies whether value of the data at the specified column position is null.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodNextResultMoves to the next result in the trace.
Public methodReadReads the trace record.
Public methodToString (Inherited from Object.)
Public methodTranslateSubclassTranslates the sub class.
Top
  NameDescription
Protected fieldcurrentRowSpecifies the current row.
Top

The TraceReader class provides trace data reading functionality and access to data that is common to both the TraceServer class, the TraceTable class, and the TraceFile class.

The trace data reading functionality is also available on the TraceReaderWriter class, which is derived from the TraceReader class and is used in the construction of the TraceTable class and TraceFile class.

Thread Safety

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.