asp.net.ph

SqlDataReader.GetValues Method

System.Data.SqlClient Namespace   SqlDataReader Class


Returns all the attribute fields in the collection 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 array of Object to copy the attribute fields into.

Return Value

The number of instances of Object in the array.

Remarks

For most applications, this 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

SqlDataReader Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph