| PowerShellFormatStringList Method |
Formats the given strings as a string array in PowerShell syntax.
Namespace:
Mastersign.Bench
Assembly:
BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax public static string FormatStringList(
params string[] args
)
Public Shared Function FormatStringList (
ParamArray args As String()
) As String
Parameters
- args
- Type: SystemString
The strings, to be formatted as a PowerShell array.
Return Value
Type:
StringA string with the formatted values.
Examples
The call PowerShell.FormatString("ab", "cd ef", gh") yields the
result string "@(\"ab\", \"cd ef\", \"gh\")".
See Also