ZennoLab Assemblies Documentation
Name Property
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IGlobalVariable Interface : Name Property

Glossary Item Box

Gets or sets name of global variable.

Syntax

C# 
string Name {get; set;}

Property Value

Type: System.String

The name of global variable.

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";
PHPCopy 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

© 2013 All Rights Reserved.