Converts the value of this instance to a String that uses a specified string and has 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 format.
NumberFormatInfo supplies information for the characters of monetary values to use for decimal and thousand separators, and for the spelling and placement of currency symbols. (For additional information on currency symbols and current cultures, see CultureInfo.)
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. If sp is null, the numeric format information is obtained from the current locale.
Byte Structure | Byte Members | System Namespace | Byte.Format Overload List