VariablesToAdd

Gets or sets a comma-separated list of environment variable name-value pairs to add when the command is executed.

Syntax

string VariablesToAdd {get; set;}

Property value

A comma-separated string of name-value pairs (for example, "var1=a,var2=b,var3=c"). If a value of null or empty string is set, no name-value pairs are added. The default is null.

Exceptions

VariablesToAdd throws an ArgumentException if VariablesToAdd contains an empty entry, the name, value, or name-value pair is invalid, or you listed duplicate variables.