Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal request As RequestMessage, _ ByVal agentMib As VariableList _ ) |
Visual Basic (Usage) | ![]() |
---|---|
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.
Exception | Description |
---|---|
System.ArgumentException | The request is not a SetMessage, GetMessage, GetNextMessage or BetBulkMessage type. |
System.ArgumentNullException | The agentMib parameter is null. |
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.
Target Platforms: Microsoft .NET Framework 2.0