Char.IFormattable.ToString(String, IFormatProvider) Methode

Definition

Formatiert den Wert der aktuellen Instanz mit dem angegebenen Format.

 virtual System::String ^ System.IFormattable.ToString(System::String ^ format, IFormatProvider ^ formatProvider) = IFormattable::ToString;
string IFormattable.ToString (string format, IFormatProvider formatProvider);
abstract member System.IFormattable.ToString : string * IFormatProvider -> string
override this.System.IFormattable.ToString : string * IFormatProvider -> string
Function ToString (format As String, formatProvider As IFormatProvider) As String Implements IFormattable.ToString

Parameter

format
String

Das zu verwendende Format. Oder: Ein null Verweis ( in Nothing Visual Basic), um das für den Typ der Implementierung definierte Standardformat zu IFormattable verwenden.

formatProvider
IFormatProvider

Der Anbieter, der zum Formatieren des Werts verwendet werden soll. Oder: Ein null Verweis ( in Nothing Visual Basic), um die numerischen Formatinformationen aus der aktuellen Gebietsschemaeinstellung des Betriebssystems abzurufen.

Gibt zurück

String

Der Wert der aktuellen Instanz im angegebenen Format.

Implementiert

Gilt für