FormattableString.IFormattable.ToString(String, IFormatProvider) Metoda

Definicja

Zwraca ciąg, który wynika z formatowania ciągu formatu wraz z jego argumentami przy użyciu konwencji formatowania określonej kultury.

C#
string IFormattable.ToString (string ignored, IFormatProvider formatProvider);

Parametry

ignored
String

Ciąg. Ten argument jest ignorowany.

formatProvider
IFormatProvider

Obiekt, który dostarcza informacje o formatowaniu specyficzne dla kultury.

Zwraca

String

Ciąg sformatowany przy użyciu konwencji parametru formatProvider .

Implementuje

Uwagi

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 .

Dotyczy

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