DbDataRecord.GetValues Method (Object[])


Populates an array of objects with the column values of the current record.

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

public abstract int GetValues(
	object[] values


Type: System.Object[]

An array of Object to copy the attribute fields into.

Return Value

Type: System.Int32

The number of instances of Object in the array.

Using this method may be more efficient for most applications then retrieving each field individually.

.NET Framework
Available since 1.1
Return to top