Dart.Snmp Namespace > ResponseMessage Class > ResponseMessage Constructor : ResponseMessage Constructor(RequestMessage,SnmpBase) |
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 )
Exception | Description |
---|---|
System.ArgumentNullException | The request or entity parameter is null. |
System.ArgumentException | The entity parameter must be of type Agent when request is a SetMessage, GetMessage, GetNextMessage or GetBulkMessage. |
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.