Visual Basic (Usage) | ![]() |
---|---|
Dim instance As StatusCode 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) The format of the string. Always specify null for this parameter
- formatProvider
- The provider to use for the formatting
Exception | Description |
---|---|
System.FormatException | Thrown if you specify a value for the Format parameter |
Returns the string representation of the object.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x