Make SNMP request. With this method you can make blocked SNMP version 1, 2 and 3 requests of type GET, GET-NEXT, GET-BULK, SET and REPORT (request types have to compatible with the SNMP protocol version you are using). This method will pass through any exceptions thrown by parsing classes/methods so see individual packet classes, ASN.1 type classes, authentication, privacy, etc. classes for exceptions thrown.

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public bool RequestAsync(
	Pdu pdu,
	IAgentParameters agentParameters,
	SnmpAsyncResponse responseCallback
)
Public Function RequestAsync ( _
	pdu As Pdu, _
	agentParameters As IAgentParameters, _
	responseCallback As SnmpAsyncResponse _
) As Boolean
public:
bool RequestAsync(
	Pdu^ pdu, 
	IAgentParameters^ agentParameters, 
	SnmpAsyncResponse^ responseCallback
)

Parameters

pdu
Pdu
Pdu class (do not pass ScopedPdu)
agentParameters
IAgentParameters
Security information for the request. Use AgentParameters for SNMP versions 1 and 2 requests. Use SecureAgentParameters for SNMP version 3 requests.
responseCallback
SnmpAsyncResponse
Callback that receives the result of the async operation.

Return Value

True if async request was successfully initiated, otherwise false.

See Also