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;
-or-
A null reference object to use the default format denoted by the string "G" (general format).
-or-
A null reference object to obtain the numeric format information from the current locale setting of the operating system.
A String containing the value of the current instance in the specified format.
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.
IFormattable Interface | IFormattable Members | System Namespace