String.Format Method (IFormatProvider, String, Object, Object, Object)
.NET Framework (current version)
Replaces the format items in a specified string with the string representation of three specified objects. An parameter supplies culture-specific formatting information.
Assembly: mscorlib (in mscorlib.dll)
Public Shared Function Format ( provider As IFormatProvider, format As String, arg0 As Object, arg1 As Object, arg2 As Object ) As String
Parameters
- provider
-
Type:
System.IFormatProvider
An object that supplies culture-specific formatting information.
- format
- Type: System.String
- arg0
-
Type:
System.Object
The first object to format.
- arg1
-
Type:
System.Object
The second object to format.
- arg2
-
Type:
System.Object
The third object to format.
Return Value
Type: System.StringA copy of format in which the format items have been replaced by the string representations of arg0, arg1, and arg2.
| Exception | Condition |
|---|---|
| ArgumentNullException | format, arg0, arg1, or arg2 is null. |
| FormatException | format is invalid. -or- The index of a format item is less than zero, or greater than or equal to three. |
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:
