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




Gets or sets the error index field that indicates which variable caused an error.

Syntax

Visual Basic (Declaration) 
Public Property ErrorIndex As Integer
Visual Basic (Usage)Copy Code
Dim instance As ResponseMessage
Dim value As Integer
 
instance.ErrorIndex = value
 
value = instance.ErrorIndex
C# 
public int ErrorIndex {get; set;}
Managed Extensions for C++ 
public: __property int get_ErrorIndex();
public: __property void set_ErrorIndex( 
   int value
);
C++/CLI 
public:
property int ErrorIndex {
   int get();
   void set (    int value);
}

Property Value

A 0-based index that indicates which variable in MessageBase.Variables caused the error indicated by ErrorStatus.

Remarks

SNMP only provides error reporting for the first variable found with an error. Variable objects found before Variables[ResponseMessage.ErrorIndex] usually contain valid data.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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