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;
A String representation for the value of this instance in the format specified by the string.
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.)
Decimal Structure | Decimal Members | System Namespace | Decimal.Format Overload List