Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere .NET 2.0 API Reference » SADataReader class

GetValue(Int32, Int64, Int32) method Next Page

GetValues method


Gets all the columns in the current row.

Syntax

Visual Basic

Public Overrides Function GetValues( _
ByVal values As Object() _
) As Integer

C#

public override int GetValues(
object[] values
);

Parameters
Return value

The number of objects 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