ZennoLab Assemblies Documentation
Item Property (ILocalVariables)
Example 
Type: System.String

The name of local variable.

Get the local variable by the specified name.

Syntax
ILocalVariable this[ 
   string variableName
]; {get;}

Parameters

variableName
Type: System.String

The name of local variable.

Property Value

Type: ZennoLab.InterfacesLibrary.ProjectModel.ILocalVariable

The object of ILocalVariable describing local variable.

Exceptions
ExceptionDescription
KeyNotFoundExceptionThe exception that is thrown when the name specified for accessing a local variable in a collection does not match any name in the collection.
Remarks
This property uses only for getting necessary local variable.
Example
The following example uses property "Item" (operator []) to access a local variable with name "LocalVariable".
ILocalVariable lv = project.Variables["LocalVariable"];
$lv = $project->Variables->get_Item("LocalVariable");
Requirements

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

See Also

Reference

ILocalVariables Interface
ILocalVariables Members
ILocalVariable Interface

Send Feedback