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
)
參數
- reader
型別:System.Data.Common.DbDataReader
- dataOffset
型別:System.Int64
- buffer
型別:array<System.Byte[]
- bufferIndex
型別:System.Int32
- length
型別:System.Int32
傳回值
型別:System.Int32
傳回 Int32。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。