ZennoLab Assemblies Documentation
Item(String,String) Property
Example 
ZennoLab.InterfacesLibrary.ProjectModel.Collections Namespace > IGlobalVariables Interface > Item Property : Item(String,String) Property
Type: System.String

The namespace of global variable.

Type: System.String

The name of global variable.

Get the global variable by the specified pair, namespace and name.

Syntax

Parameters

nameSpace
Type: System.String

The namespace of global variable.

variableName
Type: System.String

The name of global variable.

Property Value

Type: ZennoLab.InterfacesLibrary.ProjectModel.IGlovalVariable

The object of IGlobalVariable describing global variable.

Exceptions
ExceptionDescription
The exception that is thrown when the pair, namespace and name, specified for accessing a global variable in a collection does not match any pair in the collection.
Remarks
This property uses only for getting necessary global variable. For setting value need use method SetVariable.
Example
The following example uses property "Item" (operator []) to access a global variable with namespace "MyNamespace" and name "MyGlobalVariable".
IGlobalVariable gv = project.GlobalVariables["MyNamespace", "MyGlobalVariable"];
$gv = $project->GlobalVariables->get_Item("MyNamespace", "MyGlobalVariable");
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IGlobalVariables Interface
IGlobalVariables Members
Overload List
IGlobalVariable Interface