IVsDataReader.GetBytes メソッド (String, array<Byte , Int32, Int32)

クラスで実装された場合、取得元のバイナリ データの指定したバイト数。

名前空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
アセンブリ:  Microsoft.VisualStudio.Data.Services (Microsoft.VisualStudio.Data.Services.dll 内)

構文

'宣言
Function GetBytes ( _
    name As String, _
    buffer As Byte(), _
    bufferIndex As Integer, _
    length As Integer _
) As Integer
int GetBytes(
    string name,
    byte[] buffer,
    int bufferIndex,
    int length
)
int GetBytes(
    String^ name, 
    array<unsigned char>^ buffer, 
    int bufferIndex, 
    int length
)
abstract GetBytes : 
        name:string * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int 
function GetBytes(
    name : String, 
    buffer : byte[], 
    bufferIndex : int, 
    length : int
) : int

パラメーター

  • name
    型 : System.String
    生のバイナリ データを取得する項目の名前。
  • buffer
    型 : array<System.Byte[]
    バイト配列と同様にデータを、指定した配列は、設定する必要があります。nullnull 参照 (Visual Basic では Nothing) が、このメソッドは指定したすべてのデータに合わせて配列の必要なサイズを返します。
  • bufferIndex
    型 : System.Int32
    buffer のパラメーターで指定されるバイト配列の開始点のインデックス。
  • length
    型 : System.Int32
    buffer のパラメーターで指定されるバイト配列に読み込むバイト数。

戻り値

型 : System.Int32
バイト数を示す整数値はバッファーに読み取られた合計。

解説

データが生バイトの形式で DDEX プロバイダーによって示される場合、既存のクライアント側バッファーに指定したバイト数だけを読み込むには、このメソッドを呼び出します。これにより、すべてのデータをメモリに読み込み、割り当てます全体の値を簡単に取得を実行します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

IVsDataReader インターフェイス

GetBytes オーバーロード

Microsoft.VisualStudio.Data.Services.SupportEntities 名前空間