ZennoLab Assemblies Documentation
Item Property (IGlobalVariables)
Example 
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
IGlobalVariable this[ 
   string nameSpace,
   string variableName
]; {get;}

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
KeyNotFoundExceptionThe 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
IGlobalVariable Interface

Send Feedback