PowerSNMP for .NET
ErrorIndex Property




Gets or sets the error index field that indicates which variable caused an error.
Syntax
Public Property ErrorIndex As Integer
Dim instance As ResponseMessage
Dim value As Integer
 
instance.ErrorIndex = value
 
value = instance.ErrorIndex
public int ErrorIndex {get; set;}
public: __property int get_ErrorIndex();
public: __property void set_ErrorIndex( 
   int value
);
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. -1 indicates no error, or that the error is not specific to a variable.
Remarks

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

See Also

Reference

ResponseMessage Class
ResponseMessage Members

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