ListChildren Method

Lists the immediate children of the selected node.

Syntax

ANSI (Cross Platform)
int ListChildren();

Unicode (Windows)
INT ListChildren();
- (void)listChildren;
#define MID_MIBBROWSER_LISTCHILDREN 3

IPWORKSSNMP_EXTERNAL int IPWORKSSNMP_CALL IPWorksSNMP_MibBrowser_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

The MibNode event fires once for every SubId of the selected node and provides all info related to that SubId.

For instance, the following code:

MibParser.LoadMib("RFC1155-SMI")
MibParser.SelectNode("internet")
MibParser.ListChildren() 
will generate the following output through the MibNode event:
  directory    1.3.6.1.1
  mgmt         1.3.6.1.2
  experimental 1.3.6.1.3
  private      1.3.6.1.4

Error Handling (C++)

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

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