Compartir a través de


Clase TraceReader

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.

Jerarquía de herencia

System.Object
  Microsoft.SqlServer.Management.Trace.TraceReader
    Microsoft.SqlServer.Management.Trace.TraceReaderWriter
    Microsoft.SqlServer.Management.Trace.TraceServer

Espacio de nombres:  Microsoft.SqlServer.Management.Trace
Ensamblado:  Microsoft.SqlServer.ConnectionInfoExtended (en Microsoft.SqlServer.ConnectionInfoExtended.dll)

Sintaxis

'Declaración
<ComVisibleAttribute(False)> _
Public Class TraceReader _
    Implements IDataReader, IDisposable, IDataRecord
'Uso
Dim instance As TraceReader
[ComVisibleAttribute(false)]
public class TraceReader : IDataReader, 
    IDisposable, IDataRecord
[ComVisibleAttribute(false)]
public ref class TraceReader : IDataReader, 
    IDisposable, IDataRecord
[<ComVisibleAttribute(false)>]
type TraceReader =  
    class 
        interface IDataReader 
        interface IDisposable 
        interface IDataRecord 
    end
public class TraceReader implements IDataReader, IDisposable, IDataRecord

El tipo TraceReader expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público TraceReader Initializes a new instance of the TraceReader class.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública Depth Gets the depth value for the trace reader.
Propiedad pública FieldCount Gets the number of columns in the data.
Propiedad pública IsClosed Gets the Boolean property value that specifies whether the trace reader is closed.
Propiedad pública Item[Int32] Gets the column specified by the index position.
Propiedad pública Item[String] Gets the column with the specified name.
Propiedad pública RecordsAffected Gets the number of records of data.

Arriba

Métodos

  Nombre Descripción
Método público Close Closes the trace reader.
Método público Dispose Deletes the trace reader information.
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetBoolean Returns a Boolean value from the record at the specified column position.
Método público GetByte Returns a Byte value from the record at the specified column position.
Método público GetBytes Gets a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.
Método público GetChar Gets a character value of the specified column.
Método público GetChars(Int32, array<Char[], Int32, Int32, Int32) Gets a character array value from the record at the specified column position.
Método público GetChars(Int32, Int64, array<Char[], Int32, Int32) Gets a character array value from the record at the specified column position.
Método público GetData Returns IDataReader object used when the field points to a remote data structure.
Método público GetDataTypeName Gets the data type of the data value at the specified column position.
Método público GetDateTime Gets a DateTime value of the data value at the specified column position.
Método público GetDecimal Gets a Decimal value of the data value at the specified column position.
Método público GetDouble Gets a floating point value of the data value at the specified column position.
Método público GetFieldType Returns the field type of the data value at the specified column position.
Método público GetFloat Gets a floating point value of the data value at the specified column position.
Método público GetGuid Gets a Guid system value of the data value at the specified column position.
Método público GetHashCode (Se hereda de Object.)
Método público GetInt16 Gets a small integer value of the data value at the specified column position.
Método público GetInt32 Gets an integer value of the data value at the specified column position.
Método público GetInt64 Gets a long integer value of the data value at the specified column position.
Método público GetName Gets the name of the field at the specified column position.
Método público GetOrdinal Gets the ordinal value of the data value at the specified column position.
Método público GetSchemaTable Gets a table that describes the schema.
Método público GetStream Gets the stream of data.
Método público GetString Gets a String value at the specified column position.
Método público GetTimeSpan Gets a TimeSpan value of the data value at the specified column position.
Método público GetType (Se hereda de Object.)
Método público GetValue Gets a value of the data value at the specified column position.
Método público GetValues Gets an array of values from the data value at the specified column position.
Método público IsDBNull Specifies whether the specified column is set to null.
Método público IsNull Gets a Boolean value that specifies whether value of the data at the specified column position is null.
Método protegido MemberwiseClone (Se hereda de Object.)
Método público NextResult Moves to the next result in the trace.
Método público Read Reads the trace record.
Método público ToString (Se hereda de Object.)
Método público TranslateSubclass Translates the sub class.

Arriba

Campos

  Nombre Descripción
Campo protegido currentRow Specifies the current row.

Arriba

Comentarios

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

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Ejemplos

Using SQL Server Profiler

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Management.Trace

Otros recursos

Marcas de seguimiento (Transact-SQL)

Plantillas y permisos de SQL Server Profiler