asp.net.ph

OleDbDataReader.GetValues Method

System.Data.OleDb Namespace   OleDbDataReader Class


Returns all the attribute fields for the current record.

[ VB ]
NotOverridable Public Function GetValues ( _
   ByVal values ( ) As Object _
) As Integer

[ C# ]
public int GetValues (
   object [ ] values
);

[ C++ ]
public: __sealed int GetValues (
   Object* values [ ]
);

[ JScript ]
public function GetValues (
   values : Object [ ]
) : int

Parameters

values
An Object array to copy the attribute fields into.

Return Value

The number of instances of Object in the array.

Remarks

For most applications, the GetValues method provides an efficient means for retrieving all columns, rather than retrieving each column individually.

You can pass an Object array that contains fewer than the number of columns contained in the resulting row. Only the amount of data the Object array holds is copied to the array. You can also pass an Object array whose length is more than the number of columns contained in the resulting row.

This method returns DBNull for null database columns.

See Also

OleDbDataReader Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note