StringExtensionsFormat(String, Object) Method
Replaces the format item in a specified string with the string representation of a corresponding object in a
specified array.
Namespace: PCBI_CadanceFab_ImportAssembly: PCBI_CadanceFab_Import (in PCBI_CadanceFab_Import.dll) Version: 16.0.0.0 (16.0.0.0)
public static string Format(
this string value,
params Object[] args
)
<ExtensionAttribute>
Public Shared Function Format (
value As String,
ParamArray args As Object()
) As String
public:
[ExtensionAttribute]
static String^ Format(
String^ value,
... array<Object^>^ args
)
[<ExtensionAttribute>]
static member Format :
value : string *
args : Object[] -> string
- value String
- A composite format string
- args Object
- An object array that contains zero or more objects to format
String
A copy of format in which the format items have been replaced by the string representation of the
corresponding objects in args
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).
ArgumentNullException | format 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.
|