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!

Double.Format (String, IServiceObjectProvider)

Converts the value of this instance to a String with the specified format string provided by IServiceObjectProvider.

[Visual Basic]
Overloads Overridable Public Function Format( _
   ByVal format As String, _
   ByVal sp As IServiceObjectProvider _
) As String
[C#]
public virtual string Format(
   string format,
   IServiceObjectProvider sp
);
[C++]
public: virtual String* Format(
   String* format,
   IServiceObjectProvider* sp
);
[JScript]
public function Format(
   format : String,
   sp : IServiceObjectProvider
) : String;

Parameters

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

Return Value

A string representation of the number in this instance in the specified format.

Remarks

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

The sp parameter specifies the format provider from which the NumberFormatInfo instance will be obtained. 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 CurrentCulture).

If sp is null, the numeric format information is obtained from the current locale (for additioninformation on cultures, see CultureInfo).

The numeric format information is obtained from the current locale (for more information on numeric formats, see NumberFormatInfo). Various cultures have unquie numberic and currency formating, such as Portugese, Kazakh, or Farsi (for addition information on cultures, see CultureInfo).

See Also

Double Structure | Double Members | System Namespace | Double.Format Overload List | IServiceObjectProvider | String | CultureInfo | NumberFormatInfo