Click or drag to resize

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
)

Parameters

args
Type: SystemString
The strings, to be formatted as a PowerShell array.

Return Value

Type: String
A string with the formatted values.
Examples
The call PowerShell.FormatString("ab", "cd ef", gh") yields the result string "@(\"ab\", \"cd ef\", \"gh\")".
See Also