'Declaration
<NotNullAttribute()> Overloads Function Add( _ ByVal Key As String, _ ByVal value As String, _ ByVal addToEnvironment As Boolean _ ) As IJobVariable
[NotNull()] IJobVariable Add( string Key, string value, bool addToEnvironment )
[NotNull()] IJobVariable^ Add( String^ Key, String^ value, bool addToEnvironment )
Parameters
- Key
- The name of the variable to add or update
- value
- The new value for the variable
- addToEnvironment
- If true, the variable is also exposed as a Windows environment variable for programs run by the job
Return Value
The newly-added JobVariable.