String.Format Method (String, Object, Object, Object)
Replaces the format items in a specified string with the string representation of three specified objects.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Parameters
- format
- Type: System.String
A composite format 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 is null. |
| FormatException | format is invalid. -or- The index of a format item is less than zero, or greater than two. |
Note |
|---|
For examples and comprehensive usage information about this and other overloads of the Format method, see the Format overload summary. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note