ErrorIndex Property

Index of the first variable (object) that caused an error from the last SNMP response.

Syntax

ANSI (Cross Platform)
int GetErrorIndex();

Unicode (Windows)
INT GetErrorIndex();
@property (nonatomic,readonly,assign,getter=errorIndex) int errorIndex;
- (int)errorIndex;
#define PID_SNMPTCPMGR_ERRORINDEX 9

IPWORKSSNMP_EXTERNAL void* IPWORKSSNMP_CALL IPWorksSNMP_SNMPTCPMgr_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);

Default Value

0

Remarks

This property is used in conjunction with the ErrorStatus property, and refers to the object that caused the error reported in the last SNMP response. This value is parsed directly from the SNMP response, which will be a one-based value, so a value of i here maps to index i-1 in the Objects collection.

The ErrorIndex property has no meaning when the ErrorStatus property is 0 (no error).

This property is read-only and not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 C++ Edition - Version 20.0 [Build 8202]