PowerSNMP for .NET
ResponseMessage Constructor(RequestMessage,SnmpBase)




The RequestMessage representing the request received from the SNMP manager.
Source of Agent.Variables, Agent.SysUpTime and AuthoritativeEngine used to create the ResponseMessage.
Initializes a new instance of the ResponseMessage class based upon the request, authoritative engine and variables provided.
Syntax
Public Function New( _
   ByVal request As RequestMessage, _
   ByVal entity As SnmpBase _
)
Dim request As RequestMessage
Dim entity As SnmpBase
 
Dim instance As New ResponseMessage(request, entity)
public ResponseMessage( 
   RequestMessage request,
   SnmpBase entity
)
public: ResponseMessage( 
   RequestMessage* request,
   SnmpBase* entity
)
public:
ResponseMessage( 
   RequestMessage^ request,
   SnmpBase^ entity
)

Parameters

request
The RequestMessage representing the request received from the SNMP manager.
entity
Source of Agent.Variables, Agent.SysUpTime and AuthoritativeEngine used to create the ResponseMessage.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe request or entity parameter is null.
System.ArgumentExceptionThe entity parameter must be of type Agent when request is a SetMessage, GetMessage, GetNextMessage or GetBulkMessage.
Remarks

This constructor will create a ResponseMessage with a matching MessageBase.Version, StandardMessage.Id, and StandardMessage.Security. Agent.Variables is used to populate MessageBase.Variables with IID/Value pairs.

A SetMessage request will update Agent.Variables as applicable.

The second parameter was changed from "Agent" to "SnmpBase" in version 4.8.2.

See Also

Reference

ResponseMessage Class
ResponseMessage Members
Overload List

6.1.1.2
PowerSNMP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic