ExactMatch Property

Controls the way the OID matching is done (complete or partial).

Syntax

ANSI (Cross Platform)
int GetExactMatch();
int SetExactMatch(int bExactMatch); Unicode (Windows) BOOL GetExactMatch();
INT SetExactMatch(BOOL bExactMatch);
@property (nonatomic,readwrite,assign,getter=exactMatch,setter=setExactMatch:) BOOL exactMatch;
- (BOOL)exactMatch;
- (void)setExactMatch:(BOOL)newExactMatch;
#define PID_MIBBROWSER_EXACTMATCH 1

IPWORKSSNMP_EXTERNAL void* IPWORKSSNMP_CALL IPWorksSNMP_MibBrowser_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSSNMP_EXTERNAL int IPWORKSSNMP_CALL IPWorksSNMP_MibBrowser_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

TRUE

Remarks

If ExactMatch is set to True, the SelectNode method will try to find an exact match for the supplied selector. If not found, an exception will be thrown.

If ExactMatch is set to False, the SelectNode method will start from the root (iso) and will go as far as it can, finding the closest match for the requested node.

For instance, in SNMPv2-MIB sysUpTime is defined as "1.3.6.1.2.1.1.3". If ExactMatch is False, calling SelectNode with selector "1.3.6.1.2.1.1.3.0" will populate NodeLabel with "sysUpTime.0" while the same call with ExactMatch set to True will fail since that exact OID is not defined in the MIB.

Data Type

Boolean

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