OdbcDataReader.GetChars メソッド
アセンブリ: System.Data (system.data.dll 内)

Public Overrides Function GetChars ( _ i As Integer, _ dataIndex As Long, _ buffer As Char(), _ bufferIndex As Integer, _ length As Integer _ ) As Long
Dim instance As OdbcDataReader Dim i As Integer Dim dataIndex As Long Dim buffer As Char() Dim bufferIndex As Integer Dim length As Integer Dim returnValue As Long returnValue = instance.GetChars(i, dataIndex, buffer, bufferIndex, length)
public: virtual long long GetChars ( int i, long long dataIndex, array<wchar_t>^ buffer, int bufferIndex, int length ) override
public override function GetChars ( i : int, dataIndex : long, buffer : char[], bufferIndex : int, length : int ) : long
- i
列の 0 から始まる序数。
実際に読み込まれた文字数。

GetChars は、フィールド内で利用可能な文字数を返します。ほとんどの場合、これは正確なフィールド長です。ただし、既に GetChars を使用してフィールドから文字を取得している場合は、返される文字数が、フィールドの実際の長さよりも小さくなることがあります。これは、OdbcDataReader が大きいデータ構造体をバッファに読み込んでいるときなどに起こります。詳細については、CommandBehavior の SequentialAccess 設定のトピックを参照してください。
null 値のバッファを渡すと、GetChars は、文字列単位のフィールド長を返します。
変換は、基になっている ODBC ドライバの機能に基づいて実行されます。変換がサポートされていない場合、このメソッド呼び出しは失敗します。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からOdbcDataReader.GetChars メソッドを検索する場合は、下記のリンクをクリックしてください。

- OdbcDataReader.GetChars メソッドのページへのリンク