Returns a string representation of the instance using the specified format.
| C# | Visual Basic | Visual C++ |
public string ToString( string format, IFormatProvider formatProvider )
Public Function ToString ( _ format As String, _ formatProvider As IFormatProvider _ ) As String
public: virtual String^ ToString( String^ format, IFormatProvider^ formatProvider ) sealed
- formatProvider (IFormatProvider)
- Not used.
A string representation of the instance.
The following string values are valid for format:
| Format String | Description and Associated Properties |
|---|---|
| g | General format, containing nomination of values. |
| s | Short format, no nomination of values. |
