SqlColumnBinder.GetBytes Method (DbDataReader, Int64, array<Byte , Int32, Int32)
Read a chunk of bytes from a column. When used with ExecuteReader(CommandBehavior.SequentialAccess), you can efficiently stream bytes from a BLOB column.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
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
)
public:
int GetBytes(
DbDataReader^ reader,
long long dataOffset,
array<unsigned char>^ buffer,
int bufferIndex,
int length
)
member GetBytes :
reader:DbDataReader *
dataOffset:int64 *
buffer:byte[] *
bufferIndex:int *
length:int -> int
public function GetBytes(
reader : DbDataReader,
dataOffset : long,
buffer : byte[],
bufferIndex : int,
length : int
) : int
Parameters
- reader
Type: System.Data.Common.DbDataReader
- dataOffset
Type: System.Int64
- buffer
Type: array<System.Byte[]
- bufferIndex
Type: System.Int32
- length
Type: System.Int32
Return Value
Type: System.Int32
Returns Int32.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.