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 (String, IServiceObjectProvider)

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

[C#]
public virtual string Format(
   string format,
   IServiceObjectProvider sop
);
[C++]
public: virtual String* Format(
   String* format,
   IServiceObjectProvider* sop
);
[JScript]
public function Format(
   format : String,
   sop : IServiceObjectProvider
) : String;

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

Parameters [C#, C++, JScript]

format
The format string.
sop
The IServiceObjectProvider used to format the number.

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

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

Remarks [C#, C++, JScript]

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

The sop parameter specifies the format provider from which the NumberFormatInfo instance will be obtained. If sop is null, the numeric format information is obtained from the current locale.

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