| ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel.Collections Namespace > IGlobalVariables Interface : Item Property |
Get the global variable by the specified pair, namespace and name.
IGlobalVariable this[ string nameSpace, string variableName ]; {get;}
The namespace of global variable.
The name of global variable.
The object of IGlobalVariable describing global variable.
| Exception | Description |
|---|---|
| KeyNotFoundException | 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. |
IGlobalVariable gv = project.GlobalVariables["MyNamespace", "MyGlobalVariable"];
$gv = $project->GlobalVariables->get_Item("MyNamespace", "MyGlobalVariable");
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.