PowerSNMP for .NET CF
ResponseMessage Constructor(RequestMessage,VariableList)
See Also  Send comments on this topic.
Dart.Snmp Namespace > ResponseMessage Class > ResponseMessage Constructor : ResponseMessage Constructor(RequestMessage,VariableList)




request
The RequestMessage representing the request received from the SNMP manager.
agentMib
A sorted list of Variable objects (IID/Value pairs) that are used to build the ResponseMessage.
Initializes a new instance of the ResponseMessage class based upon the request and the variables provided.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal request As RequestMessage, _
   ByVal agentMib As VariableList _
)
Visual Basic (Usage)Copy Code
Dim request As RequestMessage
Dim agentMib As VariableList
 
Dim instance As New ResponseMessage(request, agentMib)
C# 
public ResponseMessage( 
   RequestMessage request,
   VariableList agentMib
)
Managed Extensions for C++ 
public: ResponseMessage( 
   RequestMessage* request,
   VariableList* agentMib
)
C++/CLI 
public:
ResponseMessage( 
   RequestMessage^ request,
   VariableList^ agentMib
)

Parameters

request
The RequestMessage representing the request received from the SNMP manager.
agentMib
A sorted list of Variable objects (IID/Value pairs) that are used to build the ResponseMessage.

Exceptions

ExceptionDescription
System.ArgumentExceptionThe request is not a SetMessage, GetMessage, GetNextMessage or BetBulkMessage type.
System.ArgumentNullExceptionThe agentMib parameter is null.

Remarks

This constructor will create a ResponseMessage with a matching MessageBase.Version, StandardMessage.Id, and StandardMessage.Security. The agentMib is a sorted list of IID/Value pairs that are used to populate the MessageBase.Variables with IID/Value pairs. SetMessage, GetMessage, GetNextMessage and GetBulkMessage types are supported.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.