concat

Concatenates the specified string to the end of this string.

Syntax:

$[ScriptVariable]::concat(String str)

Parameters:

str (String): the string to add to the end of the string variable.

Example:

The following example illustrates the syntax for the concat() string method:

$str1 = "Hello"

$str1::concat("World")

print($str1)

Output:

HelloWorld