This method converts a numeric value to a String with the specified format string provided by IServiceObjectProvider.
[Visual Basic] Overloads Overridable Public Function Format( _ ByVal format As String, _ ByVal sop As IServiceObjectProvider _ ) As String [C#] public virtual string Format( string format, IServiceObjectProvider sop ); [C++] public: virtual String* Format( String* format, IServiceObjectProvider* sop ); [JScript] public function Format( format : String, sop : IServiceObjectProvider ) : String;
A string representation of the number in this instance in the specified format.
If format is null or an empty string, the number is formatted as if the general format ("G") string were specified.
The sop 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 more information about culture specific information, see System.Globalization namespace.)
If sop is null, the numeric format information is obtained from the current locale (in addition see CultureInfo).
The numeric format information is obtained from the current locale (for more information on numeric formats, see NumberFormatInfo). Various cultures have unquie numberic and currency formating, such as Portugese, Kazakh, or Farsi (for addition information on cultures, see CultureInfo).
Single Structure | Single Members | System Namespace | Single.Format Overload List | CurrentCulture | NumberFormatInfo | String | IServiceObjectProvider