PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Limitation
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SNMPCloseSession (Function)
In French: SNMPFermeSession
Closes an SNMP session.
Example
SessionID is int
// Start a session
SessionID = SNMPStartSession("TestDoc", "public")
IF SessionID = -1 THEN Error("Error while opening the session " + ErrorInfo())
...
SNMPCloseSession(SessionID)
Syntax
<Result> = SNMPCloseSession(<Identifier of SNMP Session>)
<Result>: Boolean
  • True if the session was successfully closed,
  • False if an error occurred. ErrorInfo returns more details about the problem.
<Identifier of SNMP Session>: Integer
Identifier of the SNMP session to close. This identifier was returned by SNMPStartSession.
Remarks
When closing the application (or when closing the session of a dynamic site), the SNMP sessions that are still opened are automatically closed.

Limitation

The SNMPxxx functions can only be used from Windows 2000 (they cannot be used with the following systems: Windows 98, Me or NT4).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment