System.Data.SqlClient Namespace SqlDataReader Class
Returns the value of the specified column as a Boolean.
[ VB ]
NotOverridable Public Function GetBoolean ( _
ByVal index As Integer _
) As Boolean
[ C# ]
public bool GetBoolean (
int index
);
[ C++ ]
public: __sealed bool GetBoolean (
int index
);
[ JScript ]
public function GetBoolean (
index : int
) : Boolean
- index
- The zero-based column ordinal.
The value of the column.
No conversions are performed, therefore the data retrieved must already be a Boolean.
Call IsDBNull to check for null values before calling this method.
SqlDataReader Members