Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ExtensionObject 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). Leave this as null
- formatProvider
- The provider of a mechanism for retrieving an object to control formatting.
Return Value
A System.String containing the value of the current embeded instance in the specified format.Exception | Description |
---|---|
System.FormatException | Thrown if the format parameter is not null |
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x