StringExtensionsFormat(String, Object) Method
Replaces one or more format items in a specified string with the string representation of a specified object.
Namespace: PCBI_CadanceFab_ImportAssembly: PCBI_CadanceFab_Import (in PCBI_CadanceFab_Import.dll) Version: 17.0.0.0 (17.0.0.0)
public static string Format(
this string value,
Object arg0
)
<ExtensionAttribute>
Public Shared Function Format (
value As String,
arg0 As Object
) As String
public:
[ExtensionAttribute]
static String^ Format(
String^ value,
Object^ arg0
)
[<ExtensionAttribute>]
static member Format :
value : string *
arg0 : Object -> string
- value String
- A composite format string
- arg0 Object
- An System.Object to format
StringA copy of format in which any format items are replaced by the string representation of arg0In 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.
|