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!

SByte.Format (SByte, String, NumberFormatInfo)

This method converts a numeric value to a String that is formatted using the specified number format. The SByte type is not CLS compliant. The CLS-compliant alternative is Byte.

[C#]
public static string Format(
   sbyte value,
   string format,
   NumberFormatInfo info
);
[C++]
public: static String* Format(
   char value,
   String* format,
   NumberFormatInfo* info
);
[JScript]
public static function Format(
   value : SByte,
   format : String,
   info : NumberFormatInfo
) : String;

[Visual Basic] The SByte type cannot be used in Visual Basic.

Parameters [C#, C++, JScript]

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

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

Returns a string representation of value in the format specified by format.

Remarks [C#, C++, JScript]

If format is null or an empty string, value is formatted as if the general format ("G") string were specified.

The info parameters specifies the NumberFormatInfo instance used to format the number. If info is null, the numeric format information is obtained from the current locale (see CurrentCulture for more information on current locales).

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

SByte Structure | SByte Members | System Namespace | SByte.Format Overload List | CultureInfo