PowerSNMP for .NET CF
Item Property
See Also  Send comments on this topic.
Dart.Snmp Namespace > VariableCollection Class : Item Property




index
The location within the collection.
Gets or sets the Variable at the specified index.

Syntax

Visual Basic (Declaration) 
Public Overridable Shadows Default Property Item( _
   ByVal index As Integer _
) As Variable
Visual Basic (Usage)Copy Code
Dim instance As VariableCollection
Dim index As Integer
Dim value As Variable
 
instance.Item(index) = value
 
value = instance.Item(index)
C# 
public virtual new Variable this( 
   int index
) {get; set;}
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 (intindexVariable^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 .

Remarks

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

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.