The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
String::Format Method (IFormatProvider^, String^, Object^)
.NET Framework (current version)
Replaces the format item or items in a specified string with the string representation of the corresponding object. A parameter supplies culture-specific formatting information.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- provider
-
Type:
System::IFormatProvider^
An object that supplies culture-specific formatting information.
- format
- Type: System::String^
- arg0
-
Type:
System::Object^
The object to format.
Return Value
Type: System::String^A copy of format in which the format item or items have been replaced by the string representation of arg0.
| Exception | Condition |
|---|---|
| ArgumentNullException | format or arg0 is null. |
| FormatException | format is invalid. -or- The index of a format item is less than zero, or greater than or equal to one. |
Note |
|---|
For examples and comprehensive usage information about this and other overloads of the Format method, see the Format overload summary. |
Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Available since 10
.NET Framework
Available since 4.6
Show:
