Build SNMP RESPONSE packet for the INFORM packet class.
Namespace: SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)
Syntax
| C# |
|---|
public static SnmpV2Packet BuildInformResponse( SnmpV2Packet informPacket ) |
| Visual Basic |
|---|
Public Shared Function BuildInformResponse ( _ informPacket As SnmpV2Packet _ ) As SnmpV2Packet |
| Visual C++ |
|---|
public: static SnmpV2Packet^ BuildInformResponse( SnmpV2Packet^ informPacket ) |
Parameters
- informPacket
- Type: SnmpSharpNet..::..SnmpV2Packet
SNMP INFORM packet
Return Value
SNMP version 2 packet containing RESPONSE to the INFORM packet contained in the parameter.
Exceptions
| Exception | Condition |
|---|---|
| SnmpSharpNet..::..SnmpInvalidPduTypeException | Parameter is not an INFORM SNMP version 2 packet class |
| SnmpSharpNet..::..SnmpInvalidVersionException | Parameter is not a SNMP version 2 packet |