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


string VariablesToKeepOrDelete {get; set;}

Property value

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


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


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