This documentation is archived and is not being maintained.

SqlMoney to SqlDouble Conversion

.NET Framework 1.1

Converts the supplied SqlMoney parameter to SqlDouble.

[Visual Basic]
returnValue = SqlDouble.op_Implicit(x)
[C#]
public static implicit operator SqlDouble(
 SqlMoney x
);
[C++]
public: static SqlDouble op_Implicit(
 SqlMoney x
);
[JScript]
returnValue = x;

[Visual Basic] In Visual Basic, you can use the conversion operators defined by a type, but you cannot define your own. You can use the ToSqlDouble method instead of the SqlMoney to SqlDouble conversion.

[JScript] In JScript, you can use the conversion operators defined by a type, but you cannot define your own.

Arguments [Visual Basic, JScript]

x
A SqlMoney structure.

Parameters [C#, C++]

x
A SqlMoney structure.

Return Value

A new SqlDouble whose Value is equal to the Value of the SqlMoney parameter. If the SqlMoney is Null, then the SqlDouble structure will be Null.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SqlDouble Structure | SqlDouble Members | System.Data.SqlTypes Namespace

Show: