Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ReferenceCollection 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
- The System.String specifying the format to use. -or- null to use the default format defined for the type of the System.IFormattable implementation.
- formatProvider
- The System.IFormatProvider to use to format the value. -or- null to obtain the numeric format information from the current locale setting of the operating system.
Return Value
A System.String containing the value of the current instance in the specified format.Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x