PowerSNMP for .NET
Item Property (VariableCollection)




The location within the collection.
Gets or sets the Variable at the specified index.
Syntax
Public Overridable Shadows Default Property Item( _
   ByVal index As Integer _
) As Variable
Dim instance As VariableCollection
Dim index As Integer
Dim value As Variable
 
instance.Item(index) = value
 
value = instance.Item(index)
public virtual new Variable this[ 
   int index
]; {get; set;}
public: __property virtual new Variable* get_Item   int index
;
public: __property virtual new void set_Item   int index,
   Variable* value
;
public:
virtual new property Variable^ default [int] {
   Variable^ get(int index);
   void set (int index, Variable^ value);
}

Parameters

index
The location within the collection.

Property Value

The Variable at the specified location.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionIndex is less than 0 or greater than Count.
Remarks

This function performs a linear search of all elements in the collection.

See Also

Reference

VariableCollection Class
VariableCollection Members

6.1.1.2
PowerSNMP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic