Visual Basic (Declaration) | |
---|---|
Public Overridable Shadows Default Property Item( _ ByVal index As Integer _ ) As Variable |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As VariableCollection Dim index As Integer Dim value As Variable instance.Item(index) = value value = instance.Item(index) |
Managed Extensions for C++ | |
---|---|
public: __property virtual new Variable* get_Item( int index ); public: __property virtual new void set_Item( int index, Variable* value ); |
C++/CLI | |
---|---|
public: virtual new property Variable^ default [int] { Variable^ get(intindex); void set (intindex, Variable^value); } |
Parameters
- index
- The location within the collection.
Property Value
The Variable at the specified location.Exception | Description |
---|---|
System.ArgumentOutOfRangeException | Index is less than 0 or greater than . |
This function performs a linear search of all elements in the collection.
Target Platforms: Microsoft .NET Framework 2.0