aspxtreme

IDataRecord.GetBoolean Method

System.Data Namespace   IDataRecord 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

Parameters

index
The zero-based column ordinal.

Return Value

The value of the column.

Exceptions


Exception Type Condition
InvalidCastException Occurs when the specified cast is not valid.

Remarks

No conversions are performed, therefore the data retrieved must already be a Boolean.

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

See Also

IDataRecord Members



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 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 aspxtreme