VistaDB 5






The zero-based column ordinal.
The index within the row from which to begin the read operation.
The buffer into which to copy the data.
The index with the buffer to which the data will be copied.
The maximum number of characters to read.
GetChars Method (VistaDBDataReader)
Reads a stream of characters from the specified column, starting at location indicated by dataIndex, into the buffer, starting at the location indicated by bufferIndex.
Syntax
'Declaration
 
Public Overrides NotOverridable Function GetChars( _
   ByVal ordinal As System.Integer, _
   ByVal dataOffset As System.Long, _
   ByVal buffer() As System.Char, _
   ByVal bufferOffset As System.Integer, _
   ByVal length As System.Integer _
) As System.Long
'Usage
 
Dim instance As VistaDBDataReader
Dim ordinal As System.Integer
Dim dataOffset As System.Long
Dim buffer() As System.Char
Dim bufferOffset As System.Integer
Dim length As System.Integer
Dim value As System.Long
 
value = instance.GetChars(ordinal, dataOffset, buffer, bufferOffset, length)
public override System.long GetChars( 
   System.int ordinal,
   System.long dataOffset,
   System.char[] buffer,
   System.int bufferOffset,
   System.int length
)
public function GetChars( 
    ordinal: System.Integer;
    dataOffset: System.Int64;
    buffer: System.Chararray of;
    bufferOffset: System.Integer;
    length: System.Integer
): System.Int64; override; 
public override function GetChars( 
   ordinal : System.int,
   dataOffset : System.long,
   buffer : System.char[],
   bufferOffset : System.int,
   length : System.int
) : System.long;
public: System.long GetChars( 
   System.int ordinal,
   System.long dataOffset,
   System.char[]* buffer,
   System.int bufferOffset,
   System.int length
) override 
public:
System.int64 GetChars( 
   System.int ordinal,
   System.int64 dataOffset,
   System.array<char>^ buffer,
   System.int bufferOffset,
   System.int length
) override 

Parameters

ordinal
The zero-based column ordinal.
dataOffset
The index within the row from which to begin the read operation.
buffer
The buffer into which to copy the data.
bufferOffset
The index with the buffer to which the data will be copied.
length
The maximum number of characters to read.

Return Value

The actual number of characters read.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also