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.Format (Currency, String)

Converts a numeric value to a string using the specified format string.

[Visual Basic]
Overloads Public Shared Function Format( _
   ByVal value As Currency, _
   ByVal format As String _
) As String
[C#]
public static string Format(
   Currency value,
   string format
);
[C++]
public: static String* Format(
   Currency value,
   String* format
);
[JScript]
public static function Format(
   value : Currency,
   format : String
) : String;

Parameters

value
The value to be formatted.
format
The format string.

Return Value

The value is a String representation in a specified format.

Remarks

The Format method provides the functionality to convert a Currency numeric value to a string.

If the format is null or an empty string, the Currency value is formatted as if the string general format ("G") were specified. The numeric format information is obtained from the current culture (see CultureInfo for more infomation on cultures).

See Also

Currency Structure | Currency Members | System Namespace | Currency.Format Overload List | Object | String