GeneralTransform.IFormattable.ToString(String, IFormatProvider) Methode

Definition

Formatiert den Wert der aktuellen Instanz mithilfe des angegebenen Formats.

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

Parameter

format
String

Das zu verwendende Format.

-oder-

Ein NULL-Verweis (Nothing in Visual Basic), um das standardformat zu verwenden, das für den Typ der implementierung IFormattable definiert ist.

provider
IFormatProvider

Der Anbieter, der zum Formatieren des Werts verwendet werden soll.

-oder-

Ein Nullverweis (Nothing in Visual Basic), um die numerischen Formatinformationen aus der aktuellen Gebietsschemaeinstellung des Betriebssystems abzurufen.

Gibt zurück

Der Wert der aktuellen Instanz im angegebenen Format.

Implementiert

Gilt für: