DbDataReader.GetChars(Int32, Int64, Char[], Int32, Int32) DbDataReader.GetChars(Int32, Int64, Char[], Int32, Int32) DbDataReader.GetChars(Int32, Int64, Char[], Int32, Int32) DbDataReader.GetChars(Int32, Int64, Char[], Int32, Int32) Method

Definition

Liest einen Zeichenstream aus der angegebenen Spalte beginnend an der durch dataOffset angegebenen Position in den Puffer beginnend an der durch bufferOffset angegebenen Position.Reads a stream of characters from the specified column, starting at location indicated by dataOffset, into the buffer, starting at the location indicated by bufferOffset.

public:
 abstract long GetChars(int ordinal, long dataOffset, cli::array <char> ^ buffer, int bufferOffset, int length);
public abstract long GetChars (int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length);
abstract member GetChars : int * int64 * char[] * int * int -> int64
Public MustOverride Function GetChars (ordinal As Integer, dataOffset As Long, buffer As Char(), bufferOffset As Integer, length As Integer) As Long

Parameter

ordinal
Int32 Int32 Int32 Int32

Die nullbasierte Ordnungszahl der Spalte.The zero-based column ordinal.

dataOffset
Int64 Int64 Int64 Int64

Der Index in der Zeile, an dem der Lesevorgang beginnen soll.The index within the row from which to begin the read operation.

buffer
Char[]

Der Puffer, in den die Daten kopiert werden sollen.The buffer into which to copy the data.

bufferOffset
Int32 Int32 Int32 Int32

Der Index im Puffer, an den die Daten kopiert werden.The index with the buffer to which the data will be copied.

length
Int32 Int32 Int32 Int32

Die maximale Anzahl der zu lesenden Zeichen.The maximum number of characters to read.

Gibt zurück

Die tats├Ąchlich gelesene Anzahl von Zeichen.The actual number of characters read.

Implementiert

Gilt für:

Siehe auch