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!

Byte.Format (Byte, String, NumberFormatInfo)

Converts a numeric value to a String that uses a specified string and format.

[Visual Basic]
Overloads Public Shared Function Format( _
   ByVal value As Byte, _
   ByVal format As String, _
   ByVal info As NumberFormatInfo _
) As String
[C#]
public static string Format(
   byte value,
   string format,
   NumberFormatInfo info
);
[C++]
public: static String* Format(
   unsigned char value,
   String* format,
   NumberFormatInfo* info
);
[JScript]
public static function Format(
   value : Byte,
   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 the value in the format specified format.

Remarks

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. (For additional information on currency symbols and current cultures, see CultureInfo.)

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

If info is null, the numeric format information is obtained from the current locale.

See Also

Byte Structure | Byte Members | System Namespace | Byte.Format Overload List