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 Division Operator

Divides two Currency values and produces a Currency result.

[C#]
public static Currency operator /(
   Currency c1,
   Currency c2
);
[C++]
public: static Currency operator op_Division(
   Currency c1,
   Currency c2
);
[JScript]
returnValue = c1 / c2;

[Visual Basic] In Visual Basic, you cannot use the operators defined by a type, nor override them or define your own.

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

Arguments [JScript]

c1
The left operand (the dividend).
c2
The right operand (the divisor).

Parameters [C#, C++]

c1
The left operand (the dividend).
c2
The right operand (the divisor).

Return Value [C#, C++, JScript]

The value is the Currency result of evaluating c1/ c2.

Exceptions

Exception Type Condition
DivideByZeroException if c2 is zero.

Remarks [C#, C++, JScript]

op_Division returns the result of dividing two Currency values (c1/ c2) as Currency.

See Also

Currency Structure | Currency Members | System Namespace