Condividi tramite


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

Return Value

Type: System.Int32
Returns Int32.

.NET Framework Security

See Also

Reference

SqlColumnBinder Class

GetBytes Overload

Microsoft.TeamFoundation.Framework.Server Namespace