NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Currency.ToOACurrency

Creates an OLE Automation Currency from a Currency instance.

[Visual Basic]
Public Function ToOACurrency() As Long
[C#]
public long ToOACurrency();
[C++]
public: __int64 ToOACurrency();
[JScript]
public function ToOACurrency() : long;

Return Value

An OLE Automation Currency value.

Remarks

The ToOACurrency method converts a specified Currency to a an OLE Automation Currency value. It is stored as a long (Int64), that is bitwise equal to the Currency instance this was called upon.

This method applies no scaling to the currency value and is, essentially, doing a bitwise copy of the value, bit by bit.

See Also

Currency Structure | Currency Members | System Namespace