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

Converts a Currency to an Int64.

[Visual Basic]
Public Shared Function ToInt64( _
   ByVal c As Currency _
) As Long
[C#]
public static long ToInt64(
   Currency c
);
[C++]
public: static __int64 ToInt64(
   Currency c
);
[JScript]
public static function ToInt64(
   c : Currency
) : long;

Parameters

c
A Currency value.

Return Value

The result of converting the Currency value to an Int64.

Exceptions

Exception Type Condition
OverflowException If the Currency value is outside the acceptable range.

Remarks

The ToInt64 method converts a Currency value to a long(Int64) value. The Currency value is rounded towards zero to the nearest integer value, and the result of this operation is returned as a Int64.

An overflow exception is thrown if the Currency value is less than MinValue or greater than MaxValue.

See Also

Currency Structure | Currency Members | System Namespace