ZennoLab Assemblies Documentation
Item Property
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel.Collections Namespace > ILocalVariables Interface : Item Property
variableName
Type: System.String

The name of local variable.

Glossary Item Box

Get the local variable by the specified name.

Syntax

C# 
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".
C#Copy Code
ILocalVariable lv = project.Variables["LocalVariable"];
PHPCopy Code
$lv = $project->Variables->get_Item("LocalVariable");

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

© 2013 All Rights Reserved.