クラスで実装された場合、取得元のバイナリ データの指定したバイト数。
名前空間: Microsoft.VisualStudio.Data.Services.SupportEntities
アセンブリ: Microsoft.VisualStudio.Data.Services (Microsoft.VisualStudio.Data.Services.dll 内)
構文
'宣言
Function GetBytes ( _
index As Integer, _
buffer As Byte(), _
bufferIndex As Integer, _
length As Integer _
) As Integer
int GetBytes(
int index,
byte[] buffer,
int bufferIndex,
int length
)
int GetBytes(
int index,
array<unsigned char>^ buffer,
int bufferIndex,
int length
)
abstract GetBytes :
index:int *
buffer:byte[] *
bufferIndex:int *
length:int -> int
function GetBytes(
index : int,
buffer : byte[],
bufferIndex : int,
length : int
) : int
パラメーター
- index
型 : System.Int32
取得する項目データの現在のブロックのインデックス。
- buffer
型 : array<System.Byte[]
バイト配列と同様にデータを、指定した配列は、設定する必要があります。nullnull 参照 (Visual Basic では Nothing) が、このメソッドは指定したすべてのデータに合わせて配列の必要なサイズを返します。
- bufferIndex
型 : System.Int32
buffer のパラメーターで指定されるバイト配列の開始点のインデックス。
- length
型 : System.Int32
buffer のパラメーターで指定されるバイト配列に読み込むバイト数。
戻り値
型 : System.Int32
バイト数を示す整数値はバッファーに読み取られた合計。
解説
データが生バイトの形式で DDEX プロバイダーによって示される場合、既存のクライアント側バッファーに指定したバイト数だけを読み込むには、このメソッドを呼び出します。これにより、すべてのデータをメモリに読み込み、割り当てます全体の値を簡単に取得を実行します。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。