AdoDotNetReader.GetBytes 方法 (Int32, array<Byte , Int32, Int32)

检索指定的字节数二进制数据。

命名空间:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
Public Overrides Function GetBytes ( _
    index As Integer, _
    buffer As Byte(), _
    bufferIndex As Integer, _
    length As Integer _
) As Integer
public override int GetBytes(
    int index,
    byte[] buffer,
    int bufferIndex,
    int length
)
public:
virtual int GetBytes(
    int index, 
    array<unsigned char>^ buffer, 
    int bufferIndex, 
    int length
) override
abstract GetBytes : 
        index:int * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int 
override GetBytes : 
        index:int * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int 
public override 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
指示字节数的数值读取到缓冲区中。

实现

IVsDataReader.GetBytes(Int32, array<Byte[], Int32, Int32)

备注

以字节的形式时,数据提供程序显示数据,此方法可调用只读的字节数表示到现有的客户端缓冲区。这是为了更好地检索所有的值,内存中会导致所有数据读取和分配。

.NET Framework 安全性

请参见

参考

AdoDotNetReader 类

GetBytes 重载

Microsoft.VisualStudio.Data.Framework.AdoDotNet 命名空间