ZennoLab Assemblies Documentation
Name Property (IGlobalVariable)
Example 
Gets or sets name of global variable.
Syntax
string Name {get; set;}

Property Value

Type: System.String

The name of global variable.

Example
The following example demonstrates using Name property.
// 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";
// 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

Reference

IGlobalVariable Interface
IGlobalVariable Members
IGlobalVariables Interface
ILocalVariable Interface

Send Feedback