共用方式為


AdoDotNetSchemaReader.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
    類型:Int32

    索引的資料欄位中開始讀取作業的。

  • buffer
    類型:array<Byte[]

    要讀取的位元組陣列。

  • bufferIndex
    類型:Int32

    索引的緩衝區中開始放置資料。

  • length
    類型:Int32

    位元組資料流的長度。

傳回值

類型:Int32
傳回位元組資料流陣列。

.NET Framework 安全性

請參閱

參考

AdoDotNetSchemaReader 類別

Microsoft.VisualStudio.Data.AdoDotNet 命名空間