Get a collection of local variables that can be accessed name.
Syntax
Example
The following example uses
Variables property of "project" for getting and setting value of local variable.
| C# | Copy Code |
|---|
// get local variable
ILocalVariable lv = project.Variables["MyLocalVariable"];
// set value
if (lv.Value == "5") lv.Value = "0"; |
| PHP | Copy Code |
|---|
// get local variable
$lv = $project->Variables["MyLocalVariable"];
// set value
if ($lv->Value == "5") $lv->Value = "0"; |
Requirements
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven
See Also