Visual Basic (Usage) | ![]() |
---|---|
Dim instance As DiagnosticInfo Dim format As String Dim formatProvider As IFormatProvider Dim value As String value = instance.ToString(format, formatProvider) |
C# | |
---|---|
public string ToString( string format, IFormatProvider formatProvider ) |
Parameters
- format
- (Unused). Always pass a null
- formatProvider
- (Unused) The provider.
Exception | Description |
---|---|
System.FormatException | Thrown if the format parameter is NOT null |
Returns the string representation of the object.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x