Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Gets the value of the specified column as a Boolean.
[Visual Basic] Public Overridable Function GetBoolean( _ ByVal ordinal As Integer _ ) As Boolean Implements IDataRecord.GetBoolean [C#] public virtual bool GetBoolean(int ordinal ); [C++] public: virtual bool GetBoolean(int ordinal ); [JScript] public function GetBoolean( ordinal : int) : Boolean;
Parameters
- ordinal
The zero-based column ordinal.
Return Value
The value of the column.
Implements
Exceptions
| Exception Type | Condition |
|---|---|
| InvalidCastException | The specified cast is not valid. |
| SqlNullValueException | The value is null. |
| InvalidOperationException | The operation is not valid. The SqlCeDataReader may be positioned after the last row in the result set. |
Remarks
No conversions are performed, therefore the data retrieved must already be a Boolean or an exception is generated.Call IsDBNull to check for null values before calling this method.
Requirements
Platforms: .NET Compact Framework
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
SqlCeDataReader Class | SqlCeDataReader Members | System.Data.SqlServerCe Namespace
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.