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

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

SqlDataRecord.GetBytes メソッド

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

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

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

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

returnValue = instance.GetBytes(ordinal, fieldOffset, buffer, bufferOffset, length)
public long GetBytes (
    int ordinal,
    long fieldOffset,
    byte[] buffer,
    int bufferOffset,
    int length
)
public:
virtual long long GetBytes (
    int ordinal, 
    long long fieldOffset, 
    array<unsigned char>^ buffer, 
    int bufferOffset, 
    int length
) sealed
public final long GetBytes (
    int ordinal, 
    long fieldOffset, 
    byte[] buffer, 
    int bufferOffset, 
    int length
)
public final function GetBytes (
    ordinal : int, 
    fieldOffset : long, 
    buffer : byte[], 
    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.GetBytes メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSqlDataRecord.GetBytes メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSqlDataRecord.GetBytes メソッド を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS