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

 

Returns the value of the specified column as a character array.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public abstract long GetChars(
	int i,
	long dataIndex,
	char[] buffer,
	int bufferIndex,
	int length
)

Parameters

i
Type: System.Int32

Column ordinal.

dataIndex
Type: System.Int64

Buffer to copy data into.

buffer
Type: System.Char[]

Maximum length to copy into the buffer.

bufferIndex
Type: System.Int32

Point to start from within the buffer.

length
Type: System.Int32

Point to start from within the source data.

Return Value

Type: System.Int64

The value of the specified column.

No conversions are performed; therefore the data retrieved must already be a character array.

.NET Framework
Available since 1.1
Return to top
Show: