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

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

SqlDataRecord.GetChars メソッド

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

序数指定された列の値を Char オブジェクト配列として取得します

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

Public Function GetChars ( _
    ordinal As Integer, _
    fieldOffset As Long, _
    buffer As Char(), _
    bufferOffset As Integer, _
    length As Integer _
) As Long
Dim instance As SqlDataRecord
Dim ordinal As Integer
Dim fieldOffset As Long
Dim buffer As Char()
Dim bufferOffset As Integer
Dim length As Integer
Dim returnValue As Long

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

パラメータ

ordinal

列の 0 から始まる序数

fieldOffset

フィールド値のオフセット (取得する文字開始位置)。

buffer

文字コピーバッファ

bufferOffset

バッファ内のオフセット (文字コピー開始位置)。

length

バッファコピーする文字数

戻り値
コピーされ文字数

例外例外
例外種類条件

IndexOutOfRangeException

ordinal が 0 未満か、列数 (FieldCount) を超えてます。

SqlNullValueException

ordinal指定された列が null 参照 (Visual Basic では Nothing) です。

InvalidCastException

型が一致していません。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlDataRecord クラス
SqlDataRecord メンバ
Microsoft.SqlServer.Server 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS