Gets or sets name of global variable.
Syntax
Example
The following example demonstrates using
Name property.
| C# | Copy Code |
|---|
// get global variable
IGlobalVariable gv = project.GlobalVariables["MyNamespace", "MyGlobalVariable"];
// get name of current global variable
string name = gv.Name;
// set name of global variable
gv.Name = "NewName"; |
| PHP | Copy Code |
|---|
// get global variable
$gv = $project->GlobalVariables->get_Item("MyNamespace", "MyGlobalVariable");
// get name of current global variable
$name = $gv->Name;
// set name of global variable
$gv->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