StringExtensionsFormat(String, Object) Method

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

Definition

Namespace: PCBI_CadanceFab_Import
Assembly: PCBI_CadanceFab_Import (in PCBI_CadanceFab_Import.dll) Version: 16.0.0.0 (16.0.0.0)
C#
public static string Format(
	this string value,
	params Object[] args
)

Parameters

value  String
A composite format string
args  Object
An object array that contains zero or more objects to format

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullExceptionformat or args is null.
FormatException format 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.

See Also