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

Public Overrides Function GetChars ( _ ordinal As Integer, _ dataIndex As Long, _ buffer As Char(), _ bufferIndex As Integer, _ length As Integer _ ) As Long
Dim instance As SqlCeDataReader Dim ordinal 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(ordinal, dataIndex, buffer, bufferIndex, length)
public override long GetChars ( int ordinal, long dataIndex, char[] buffer, int bufferIndex, int length )
public: virtual long long GetChars ( int ordinal, long long dataIndex, array<wchar_t>^ buffer, int bufferIndex, int length ) override
public override function GetChars ( ordinal : int, dataIndex : long, buffer : char[], bufferIndex : int, length : int ) : long
戻り値
実際に読み込まれた文字数。


GetChars は、フィールド内で利用可能な文字数を返します。ほとんどの場合、これは正確なフィールド長です。ただし、既に GetChars を使用してフィールドから文字を取得している場合は、返される文字数が、フィールドの実際の長さよりも小さくなることがあります。これは、SqlCeDataReader が、大きいデータ構造体をバッファに読み込んでいるときなどに起こります。詳細については、CommandBehavior の SequentialAccess 設定のトピックを参照してください。
null 参照 (Visual Basic では Nothing) のバッファを渡すと、GetChars は、文字単位のフィールド長を返します。


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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

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