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 Methods

The methods of the Currency structure are listed below. For a complete list of Currency structure members, see the Currency Members topic.

Public:

Abs Returns the absolute value of the given Currency.
Add Adds two Currency values.
Compare Compares two Currency values and returns an integer that indicates the result of the comparison.
CompareTo Compares this instance to a specified Object.
Divide Divides two Currency values and produces a Decimal result.
Equals Overloaded. Determines whether two values are equal.
Floor Rounds a Currency toward negative infinity to the nearest integer value.
Format Overloaded. Converts a numeric value to a String.
FromOACurrency Creates a Currency from an OLE Automation Currency.
FromString Converts a String to a Currency.
GetHashCode Gets the hash code for this instance of Currency.
GetType (inherited from Object) Gets the Type of the Object.
Max Returns the larger of two Currency values.
Min Returns the smaller of two Currency values.
Multiply Multiplies two Currency values and returns a Decimal result.
Negate Returns the negated value of the specified Currency.
Parse Overloaded. Converts a String to a Currency.
Round Rounds a Currency value to a specified number of places.
Subtract Subtracts two specified Currency values.
ToDecimal Converts a Currency to a Decimal.
ToDouble Converts a Currency to a Double.
ToInt32 Converts a Currency to an Int32.
ToInt64 Converts a Currency to an Int64.
ToOACurrency Creates an OLE Automation Currency from a Currency instance.
ToSingle Converts a Currency to a Single.
ToString Overloaded. Converts a Currency to a String.
ToUInt32 Converts a Currency to a UInt32.
ToUInt64 Converts a Currency to a UInt64.
Truncate Truncates a Currency to an integer value.

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Currency Structure | System Namespace