Parameters
- nameSpace
- Type: System.String
The namespace of global variable.
- variableName
- Type: System.String
The name of global variable.
- value
- Type: System.Object
The name of global variable.
If collection is not contains global variable with specified namespace and name, then a new global variable will be created and added to collection with the specified value.
| C# | Copy Code |
|---|---|
// change a value of existing global variable project.GlobalVariables.SetVariable("MyNamespase", "ExistingVariableName", "ChangedValue"); // create a new global variable and set value project.GlobalVariables.SetVariable("MyNamespase", "NewVariableName", "NewValue"); | |
| PHP | Copy Code |
|---|---|
// change a value of existing global variable $project->GlobalVariables->SetVariable("MyNamespase", "ExistingVariableName", "ChangedValue"); // create a new global variable and set value $project->GlobalVariables->SetVariable("MyNamespase", "NewVariableName", "NewValue"); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven