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!

Int16.Format (Int16, String, NumberFormatInfo)

Converts a numeric value to a String with the specified number format string.

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

Parameters

value
The value to be formatted.
format
The format string.
info
The NumberFormatInfo instance used to format the number.

Return Value

A string representation of value in the format specified by format.

Remarks

The Format method converts a numeric value to a string using the format string given by format. If format is null or an empty string, value is formatted as if the general format ("G") string were specified.

The info parameter specifies the NumberFormatInfo instance used to format the number. If info is null, the numeric format information is obtained from the current locale (see CultureInfo for inforamtion on specific cultures).

The NumberFormatInfo supplies information such as the characters to use for decimal and thousand separators, and the spelling and placement of currency symbols in monetary values.

See Also

Int16 Structure | Int16 Members | System Namespace | Int16.Format Overload List | String | NumberStyles