StringExtensionsFormat(String, Object) Method

Replaces one or more format items in a specified string with the string representation of a specified object.

Definition

Namespace: PCBI_CadanceFab_Import
Assembly: PCBI_CadanceFab_Import (in PCBI_CadanceFab_Import.dll) Version: 17.0.0.0 (17.0.0.0)
C#
public static string Format(
	this string value,
	Object arg0
)

Parameters

value  String
A composite format string
arg0  Object
An System.Object to format

Return Value

String
A copy of format in which any format items are replaced by the string representation of arg0

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