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!

IFormattable.Format

Formats the value of the current instance as specified.

[Visual Basic]
Function Format( _
   ByVal format As String, _
   ByVal sop As IServiceObjectProvider _
) As String
[C#]
string Format(
   string format,
   IServiceObjectProvider sop
);
[C++]
String* Format(
   String* format,
   IServiceObjectProvider* sop
) = 0;
[JScript]
function Format(
   format : String,
   sop : IServiceObjectProvider
) : String;

Parameters

format
The String specifying the format to use.

-or-

A null reference object to use the default format denoted by the string "G" (general format).

sop
The IServiceObjectProvider to be used to format the value.

-or-

A null reference object to obtain the numeric format information from the current locale setting of the operating system.

Return Value

A String containing the value of the current instance in the specified format.

Remarks

A NumberFormatInfo instance is obtained from the format provider specified by sop. NumberFormatInfo supplies numeric format 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

IFormattable Interface | IFormattable Members | System Namespace