VariablesToKeepOrDelete

Get or set a comma-separated list of environment variables to keep or delete, depending on the value of the IsResetVariables property.

Syntax

string VariablesToKeepOrDelete {get; set;}

Property value

A comma-separated list of environment variables. The default is null.

Discussion

This list is used by the IsResetVariables method to determine which variables should be kept or deleted when the command identified by this Command object is run.

Exceptions

VariablesToKeepOrDelete throws an ArgumentException if the variable name is invalid or you specified duplicate variables.