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!

Decimal.Format (String, IServiceObjectProvider)

Converts the value of this instance to a String with the format provided by TBD.

[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
[To be supplied.]
sp
[To be supplied.]

Return Value

A String representation for the value of this instance in the format specified by the string.

Remarks

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

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

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.

(For additional information on currency symbols and current cultures, see CultureInfo.)

See Also

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