DbDataReader.GetChars メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DbDataReader.GetChars メソッドの意味・解説 

DbDataReader.GetChars メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

指定した列の dataIndex指定され位置から開始される文字ストリームを、バッファbufferIndex指定され開始位置読み込みます。

名前空間: System.Data.Common
アセンブリ: System.Data (system.data.dll 内)
構文構文

Public MustOverride Function
 GetChars ( _
    ordinal As Integer, _
    dataOffset As Long, _
    buffer As Char(), _
    bufferOffset As Integer, _
    length As Integer _
) As Long
Dim instance As DbDataReader
Dim ordinal As Integer
Dim dataOffset As Long
Dim buffer As Char()
Dim bufferOffset As Integer
Dim length As Integer
Dim returnValue As Long

returnValue = instance.GetChars(ordinal, dataOffset, buffer, bufferOffset, length)
public abstract long GetChars (
    int ordinal,
    long dataOffset,
    char[] buffer,
    int bufferOffset,
    int length
)
public:
virtual long long GetChars (
    int ordinal, 
    long long dataOffset, 
    array<wchar_t>^ buffer, 
    int bufferOffset, 
    int length
) abstract
public abstract long GetChars (
    int ordinal, 
    long dataOffset, 
    char[] buffer, 
    int bufferOffset, 
    int length
)
public abstract function GetChars (
    ordinal : int, 
    dataOffset : long, 
    buffer : char[], 
    bufferOffset : int, 
    length : int
) : long

パラメータ

ordinal

列の 0 から始まる序数

dataOffset

読み取り操作開始する行内インデックス

buffer

データコピー先のバッファ

bufferOffset

データコピー先となるバッファインデックス

length

読み取り対象最大文字数

戻り値
実際に読み込まれ文字数

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DbDataReader クラス
DbDataReader メンバ
System.Data.Common 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からDbDataReader.GetChars メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDbDataReader.GetChars メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDbDataReader.GetChars メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

DbDataReader.GetChars メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DbDataReader.GetChars メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS