Get the local variable by the specified name.
| C# | |
|---|---|
ILocalVariable this[ string variableName ]; {get;} | |
Parameters
- variableName
- Type: System.String
The name of local variable.
Property Value
Type: ZennoLab.InterfacesLibrary.ProjectModel.ILocalVariableThe object of ILocalVariable describing local variable.
| Exception | Description |
|---|---|
| KeyNotFoundException | The exception that is thrown when the name specified for accessing a local variable in a collection does not match any name in the collection. |
This property uses only for getting necessary local variable.
The following example uses property "Item" (operator []) to access a local variable with name "LocalVariable".
| C# | Copy Code |
|---|---|
ILocalVariable lv = project.Variables["LocalVariable"]; | |
| PHP | Copy Code |
|---|---|
$lv = $project->Variables->get_Item("LocalVariable"); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven