EnvironmentVariableCollection.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a variable.
public:
void Add(System::String ^ varName, TypeCode varType, System::Object ^ varValue, bool varSensitive, System::String ^ varDesciption);
public void Add(string varName, TypeCode varType, object varValue, bool varSensitive, string varDesciption);
override this.Add : string * TypeCode * obj * bool * string -> unit
Public Sub Add (varName As String, varType As TypeCode, varValue As Object, varSensitive As Boolean, varDesciption As String)
Parameters
- varName
- String
The name of the variable.
- varType
- TypeCode
The type of the variable.
- varValue
- Object
The value of the variable.
- varSensitive
- Boolean
true to the variable that is sensitive; otherwise, false.
- varDesciption
- String
The description of the variable.