GetBytes メソッド

指定した列オフセットからバッファーにバイト ストリームを配列として取得します。その際、指定したバッファー オフセット位置から開始します。

名前空間:  Microsoft.SqlServer.Management.Trace
アセンブリ:  Microsoft.SqlServer.ConnectionInfoExtended (Microsoft.SqlServer.ConnectionInfoExtended.dll)

構文

'宣言
Public Function GetBytes ( _
    ordinal As Integer, _
    fieldOffset As Long, _
    buffer As Byte(), _
    bufferoffset As Integer, _
    length As Integer _
) As Long
'使用
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

パラメーター

  • fieldOffset
    型: System. . :: . .Int64
    読み取り操作を開始するフィールド内のインデックスを示す Int32 値。
  • buffer
    型: array<System. . :: . .Byte> [] () [] []
    バイト ストリームの読み込み先の Uint8 配列。

戻り値

型: System. . :: . .Int64
配列に返されるバイト数を示す Int64 値。

実装

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

使用例

Readme_Tracer