SqlCeDataReader.GetSqlMoney Method
Gets the value of the specified column as a SqlMoney.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Overridable Function GetSqlMoney ( _
ordinal As Integer _
) As SqlMoney
'Usage
Dim instance As SqlCeDataReader
Dim ordinal As Integer
Dim returnValue As SqlMoney
returnValue = instance.GetSqlMoney(ordinal)
public virtual SqlMoney GetSqlMoney(
int ordinal
)
public:
virtual SqlMoney GetSqlMoney(
int ordinal
)
abstract GetSqlMoney :
ordinal:int -> SqlMoney
override GetSqlMoney :
ordinal:int -> SqlMoney
public function GetSqlMoney(
ordinal : int
) : SqlMoney
Parameters
- ordinal
Type: System.Int32
The zero-based column ordinal.
Return Value
Type: System.Data.SqlTypes.SqlMoney
A SqlMoney.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The operation is not valid. The SqlCeDataReader may be positioned after the last row in the result set. |
Remarks
No conversion is performed; therefore, the data retrieved must already be a money value or an exception is generated.