ISNMP::Close method
The Close
method enables an ASP Web page to close a communication path to an SNMP agent.
Syntax
HRESULT Close();
Parameters
This method has no parameters.
Return value
The method always returns S_OK.
VBScript example
This method calls the SnmpMgrClose function, which is described in the Windows SDK documentation, to close the communication path that was created by the previous call to the ISNMP::Open method.
Dim StrIP, strCommunity, objSNMP
strIP = Session("MS_IPaddress")
strCommunity = Session ("MS_Community")
Set objSNMP = Server.CreateObject("OlePrn.OleSNMP")
objSNMP.Open strIP, strCommunity, 2, 1000
...
objSNMP.Close
Requirements
Target platform: Desktop
Header: Olesnmp.h