Share via


SqlCeResultSet.GetSqlDecimal Method

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

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

Syntax

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

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

Parameters

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

Return Value

Type: System.Data.SqlTypes.SqlDecimal
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