FormattableString::IFormattable::ToString Method (String^, IFormatProvider^)
.NET Framework (current version)
Returns the string that results from formatting the format string along with its arguments by using the formatting conventions of a specified culture.
Assembly: mscorlib (in mscorlib.dll)
private: virtual String^ ToString( String^ ignored, IFormatProvider^ formatProvider ) sealed = IFormattable::ToString
Parameters
- ignored
-
Type:
System::String^
A string. This argument is ignored.
- formatProvider
-
Type:
System::IFormatProvider^
An object that provides culture-specific formatting information.
Return Value
Type: System::String^A string formatted using the conventions of the formatProvider parameter.
This implementation calls the derived class' ToString(IFormatProvider^) implementation.
This member is an explicit interface implementation. It can be used only when the FormattableString instance is cast to an IFormattable interface.
Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Available since 10
.NET Framework
Available since 4.6
Show: