Share via


GetBoolean Method

Returns the value of the column at the specified index as a Boolean value.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Overrides Function GetBoolean ( _
    ordinal As Integer _
) As Boolean
'Usage
Dim instance As SqlCeResultSet
Dim ordinal As Integer
Dim returnValue As Boolean

returnValue = instance.GetBoolean(ordinal)
public override bool GetBoolean(
    int ordinal
)
public:
virtual bool GetBoolean(
    int ordinal
) override
abstract GetBoolean : 
        ordinal:int -> bool 
override GetBoolean : 
        ordinal:int -> bool 
public override function GetBoolean(
    ordinal : int
) : boolean

Parameters

Return Value

Type: System. . :: . .Boolean
The value of the column at the specified index.

Implements

IDataRecord. . :: . .GetBoolean(Int32)

Remarks

An exception is thrown if no field exists at the specified index.

See Also

Reference

SqlCeResultSet Class

SqlCeResultSet Members

System.Data.SqlServerCe Namespace