asp.net.ph

SqlDataReader.GetValue Method

System.Data.SqlClient Namespace   SqlDataReader Class


Returns the value at the specified column in its native format.

[ VB ]
NotOverridable Public Sub GetValue ( _
   ByVal index As Integer, _
   ByRef value As Object _
)

[ C# ]
void GetValue (
   int index,
   ref object value
);

[ C++ ]
public: __sealed void GetValue (
   int index,
   Object** value
);

[ JScript ]
public function GetValue (
   index : int,
   value : Object
);

Parameters

index
The zero-based column ordinal.
value
The value to return.

Remarks

GetValue returns data using the .NET Framework types.

Call IsDBNull to check for null values before calling this method.

See Also

SqlDataReader 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