Condividi tramite


Metodo TraceReader.GetBytes

Gets a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.

Spazio dei nomi  Microsoft.SqlServer.Management.Trace
Assembly:  Microsoft.SqlServer.ConnectionInfoExtended (in Microsoft.SqlServer.ConnectionInfoExtended.dll)

Sintassi

'Dichiarazione
Public Function GetBytes ( _
    ordinal As Integer, _
    fieldOffset As Long, _
    buffer As Byte(), _
    bufferoffset As Integer, _
    length As Integer _
) As Long
'Utilizzo
Dim instance As TraceReader 
Dim ordinal As Integer 
Dim fieldOffset As Long 
Dim buffer As Byte()
Dim bufferoffset As Integer 
Dim length As Integer 
Dim returnValue As Long 

returnValue = instance.GetBytes(ordinal, _
    fieldOffset, buffer, bufferoffset, _
    length)
public long GetBytes(
    int ordinal,
    long fieldOffset,
    byte[] buffer,
    int bufferoffset,
    int length
)
public:
virtual long long GetBytes(
    int ordinal, 
    long long fieldOffset, 
    array<unsigned char>^ buffer, 
    int bufferoffset, 
    int length
) sealed
abstract GetBytes : 
        ordinal:int * 
        fieldOffset:int64 * 
        buffer:byte[] * 
        bufferoffset:int * 
        length:int -> int64  
override GetBytes : 
        ordinal:int * 
        fieldOffset:int64 * 
        buffer:byte[] * 
        bufferoffset:int * 
        length:int -> int64
public final function GetBytes(
    ordinal : int, 
    fieldOffset : long, 
    buffer : byte[], 
    bufferoffset : int, 
    length : int
) : long

Parametri

  • ordinal
    Tipo: System.Int32
    An Int32 value that specifies the column position from which to retrieve the byte array value.
  • fieldOffset
    Tipo: System.Int64
    An Int32 value that specifies the index within the field from which to begin the read operation.
  • buffer
    Tipo: array<System.Byte[]
    A Uint8 array into which to read the stream of bytes.
  • bufferoffset
    Tipo: System.Int32
    An Int32 value that specifies the index at which to begin the read operation.
  • length
    Tipo: System.Int32
    An Int32 value that specifies the number of bytes to read.

Valore restituito

Tipo: System.Int64
An Int64 value that specifies the number of bytes returned in the array.

Implementa

IDataRecord.GetBytes(Int32, Int64, array<Byte[], Int32, Int32)

Esempi

Readme_Tracer

Vedere anche

Riferimento

TraceReader Classe

Spazio dei nomi Microsoft.SqlServer.Management.Trace

Altre risorse

Flag di traccia (Transact-SQL)

Modelli e autorizzazioni di SQL Server Profiler