TraceReader.GetBytes Method

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

名前空間: Microsoft.SqlServer.Management.Trace
アセンブリ: Microsoft.SqlServer.ConnectionInfo (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
    読み取り操作を開始するフィールド内のインデックスを示す Int32 値です。
  • buffer
    バイト ストリームを読み込む Uint8 配列です。
  • bufferoffset
    読み取り操作を開始するインデックスを示す Int32 値です。
  • length
    読み取るバイト数を示す Int32 値です。

戻り値

配列に返されるバイト数を示す Int64 値です。

解説

この名前空間、クラス、またはメンバは、Microsoft .NET Framework 2.0 でのみサポートされています。

使用例

Readme_Tracer

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

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

その他の技術情報

トレース フラグ (Transact-SQL)
SQL Server Profiler の使用