다음을 통해 공유


SqlCeDataReader.GetSqlMoney Method

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 SqlMoney.

Public Function GetSqlMoney( _
   ByVal ordinal As Integer _) As SqlMoney
[C#]
public SqlMoney GetSqlMoney(intordinal);
[C++]
public: SqlMoney GetSqlMoney(intordinal);
[JScript]
public function GetSqlMoney(
   ordinal : int) : SqlMoney;

Parameters

  • ordinal
    The zero-based column ordinal.

Return Value

A SqlMoney.

Exceptions

Exception Type 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.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeDataReader Class | SqlCeDataReader Members | System.Data.SqlServerCe Namespace