Поделиться через


TraceReader.GetBytes Method

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

Пространство имен: Microsoft.SqlServer.Management.Trace
Сборка: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Синтаксис

'Декларация
Public Function GetBytes ( _
    ordinal As Integer, _
    fieldOffset As Long, _
    buffer As Byte(), _
    bufferoffset As Integer, _
    length As Integer _
) As Long
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
public final long GetBytes (
    int ordinal, 
    long fieldOffset, 
    byte[] buffer, 
    int bufferoffset, 
    int length
)
public final function GetBytes (
    ordinal : int, 
    fieldOffset : long, 
    buffer : byte[], 
    bufferoffset : int, 
    length : int
) : long

Параметры

  • ordinal
  • fieldOffset
    An Int32 value that specifies the index within the field from which to begin the read operation.
  • buffer
    A Uint8 array into which to read the stream of bytes.
  • bufferoffset
    An Int32 value that specifies the index at which to begin the read operation.
  • length
    An Int32 value that specifies the number of bytes to read.

Возвращаемое значение

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

Замечания

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

Пример

Readme_Tracer

Синхронизация потоков

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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

TraceReader Class
TraceReader Members
Microsoft.SqlServer.Management.Trace Namespace

Другие ресурсы

Флаги трассировки (Transact-SQL)
Работа с приложением SQL Server Profiler