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: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IGlobalVariable Interface
IGlobalVariable Members
IGlobalVariables Interface
ILocalVariable Interface

Send Feedback