AdoDotNetDataTableReader.GetBytes 方法

读取字节流向缓冲区作为数组,开始在指定的偏移量

命名空间:  Microsoft.VisualStudio.Data.AdoDotNet
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.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[]
    要读取的字节数组。
  • bufferIndex
    类型:System.Int32
    索引到缓冲区中开始放置的数据。

返回值

类型:System.Int32
返回指定开始阅读字节流的偏移量的整数值。

.NET Framework 安全性

请参见

参考

AdoDotNetDataTableReader 类

Microsoft.VisualStudio.Data.AdoDotNet 命名空间

GetBytes