共用方式為


SqlColumnBinder.GetBytes 方法 (DbDataReader, Int64, array<Byte[], Int32, Int32)

讀取位元組區塊會從資料行的。 當使用 ExecuteReader (CommandBehavior.SequentialAccess),您可以有效地從 BLOB 資料行資料流的位元組。

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
Public Function GetBytes ( _
    reader As DbDataReader, _
    dataOffset As Long, _
    buffer As Byte(), _
    bufferIndex As Integer, _
    length As Integer _
) As Integer
public int GetBytes(
    DbDataReader reader,
    long dataOffset,
    byte[] buffer,
    int bufferIndex,
    int length
)

參數

傳回值

型別:System.Int32
傳回 Int32

.NET Framework 安全性

請參閱

參考

SqlColumnBinder 類別

GetBytes 多載

Microsoft.TeamFoundation.Framework.Server 命名空間