Bridge

String..::..Format Method (String, array<Object>[]()[][])

Replaces the format item in a specified string with the string representation of a corresponding object in a specified array.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public static string Format(
	string format,
	params Object[] args
)
<TemplateAttribute> _
Public Shared Function Format ( _
	format As String, _
	ParamArray args As Object() _
) As String
[TemplateAttribute]
public:
static String^ Format(
	String^ format, 
	... array<Object^>^ args
)

Parameters

format
Type: System..::..String
A composite format string.
args
Type: array<System..::..Object>[]()[][]
An object array that contains zero or more objects to format.

Return Value

A copy of format in which the format items have been replaced by the string representation of the corresponding objects in args.

Exceptions


ExceptionCondition
System..::..ArgumentNullExceptionformat or args is null.
System..::..FormatExceptionformat is invalid.-or- The index of a format item is less than zero, or greater than or equal to the length of the args array.