次の方法で共有


TraceReader.GetChars メソッド (Int32, array<Char , Int32, Int32, Int32)

指定した列の位置にあるレコードから文字配列値を取得します。

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

構文

'宣言
Public Function GetChars ( _
    ordinal As Integer, _
    buffer As Char(), _
    length As Integer, _
    bufferoffset As Integer, _
    fieldoffset As Integer _
) As Integer
'使用
Dim instance As TraceReader 
Dim ordinal As Integer 
Dim buffer As Char()
Dim length As Integer 
Dim bufferoffset As Integer 
Dim fieldoffset As Integer 
Dim returnValue As Integer 

returnValue = instance.GetChars(ordinal, _
    buffer, length, bufferoffset, fieldoffset)
public int GetChars(
    int ordinal,
    char[] buffer,
    int length,
    int bufferoffset,
    int fieldoffset
)
public:
int GetChars(
    int ordinal, 
    array<wchar_t>^ buffer, 
    int length, 
    int bufferoffset, 
    int fieldoffset
)
member GetChars : 
        ordinal:int * 
        buffer:char[] * 
        length:int * 
        bufferoffset:int * 
        fieldoffset:int -> int
public function GetChars(
    ordinal : int, 
    buffer : char[], 
    length : int, 
    bufferoffset : int, 
    fieldoffset : int
) : int

パラメーター

  • ordinal
    型: System.Int32
    文字配列値を取得する列の位置を示す Int32 値。
  • buffer
    型: array<System.Char[]
    文字配列の読み込み先のバッファーを示す Uint8 配列。
  • bufferoffset
    型: System.Int32
    読み取り操作を開始するインデックスを示す Int32 値。
  • fieldoffset
    型: System.Int32
    読み取り操作を開始するレコード内のインデックス位置を示す Int32 値。

戻り値

型: System.Int32
配列に返される文字数を示す int32 値。

使用例

Readme_Tracer

関連項目

参照

TraceReader クラス

GetChars オーバーロード

Microsoft.SqlServer.Management.Trace 名前空間

その他の技術情報

トレース フラグ (Transact-SQL)

SQL Server プロファイラーのテンプレートと権限