FormattableString.IFormattable.ToString(String, IFormatProvider) Metoda
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Zwraca ciąg, który wynika z formatowania ciągu formatu wraz z jego argumentami przy użyciu konwencji formatowania określonej kultury.
virtual System::String ^ System.IFormattable.ToString(System::String ^ ignored, IFormatProvider ^ formatProvider) = IFormattable::ToString;
string IFormattable.ToString (string ignored, IFormatProvider formatProvider);
abstract member System.IFormattable.ToString : string * IFormatProvider -> string
override this.System.IFormattable.ToString : string * IFormatProvider -> string
Function ToString (ignored As String, formatProvider As IFormatProvider) As String Implements IFormattable.ToString
- ignored
- String
Ciąg. Ten argument jest ignorowany.
- formatProvider
- IFormatProvider
Obiekt, który dostarcza informacje o formatowaniu specyficzne dla kultury.
Ciąg sformatowany przy użyciu konwencji parametru formatProvider
.
Ta implementacja wywołuje implementację klasy ToString(IFormatProvider) pochodnej.
Ten element członkowski jest jawną implementacją interfejsu. Można go używać tylko wtedy, gdy FormattableString wystąpienie jest rzutowanie do interfejsu IFormattable .
Produkt | Wersje |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 |
.NET Framework | 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
.NET Standard | 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |