Share via


SqlCeResultSet.GetSqlMoney Method

Returns the value of the column at the specified index as type SqlMoney.

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

Syntax

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

returnValue = instance.GetSqlMoney(ordinal)
public override SqlMoney GetSqlMoney(
    int ordinal
)
public:
virtual SqlMoney GetSqlMoney(
    int ordinal
) override
abstract GetSqlMoney : 
        ordinal:int -> SqlMoney 
override GetSqlMoney : 
        ordinal:int -> SqlMoney 
public override function GetSqlMoney(
    ordinal : int
) : SqlMoney

Parameters

  • ordinal
    Type: System.Int32
    The ordinal position of the column from which to retrieve data.

Return Value

Type: System.Data.SqlTypes.SqlMoney
The value of the column at the specified index.

Remarks

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

See Also

Reference

SqlCeResultSet Class

System.Data.SqlServerCe Namespace