Gets or sets name of local variable.
Syntax
Example
The following example demonstrates using
Name property.
| C# | Copy Code |
|---|
// get local variable
ILocalVariable lv = project.Variables["VariableName"];
// get name of current local variable
string name = lv.Name;
// set name of local variable
lv.Name = "NewName"; |
| PHP | Copy Code |
|---|
// get local variable
$lv = $project->Variables->get_Item("VariableName");
// get name of current local variable
$name = $lv->Name;
// set name of local variable
$lv->Name = "NewName"; |
Requirements
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven
See Also