StringFormat Method (String, Object, Object) |
Replaces the format items in a specified string with the string representation of two specified objects.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static string Format(
string format,
Object arg0,
Object arg1
)
Parameters
- format
- Type: SystemString
A composite format string (see Remarks). - arg0
- Type: SystemObject
The first object to format. - arg1
- Type: SystemObject
The second object to format.
Return Value
Type:
StringA copy of
format in which format items are replaced by the string representations of
arg0 and
arg1.
Exceptions See Also