SnmpMessageExtensionGetResponse(ISnmpMessage, Int32, IPEndPoint, UserRegistry, Socket) Method |
Namespace: Lextm.SharpSnmpLib.MessagingAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static ISnmpMessage GetResponse(
this ISnmpMessage request,
int timeout,
IPEndPoint receiver,
UserRegistry registry,
Socket udpSocket
)
<ExtensionAttribute>
Public Shared Function GetResponse (
request As ISnmpMessage,
timeout As Integer,
receiver As IPEndPoint,
registry As UserRegistry,
udpSocket As Socket
) As ISnmpMessage
Dim request As ISnmpMessage
Dim timeout As Integer
Dim receiver As IPEndPoint
Dim registry As UserRegistry
Dim udpSocket As Socket
Dim returnValue As ISnmpMessage
returnValue = request.GetResponse(timeout,
receiver, registry, udpSocket)
public:
[ExtensionAttribute]
static ISnmpMessage^ GetResponse(
ISnmpMessage^ request,
int timeout,
IPEndPoint^ receiver,
UserRegistry^ registry,
Socket^ udpSocket
)
[<ExtensionAttribute>]
static member GetResponse :
request : ISnmpMessage *
timeout : int *
receiver : IPEndPoint *
registry : UserRegistry *
udpSocket : Socket -> ISnmpMessage
Parameters
- request ISnmpMessage
- The ISnmpMessage.
- timeout Int32
- The time-out value, in milliseconds. The default value is 0, which indicates an infinite time-out period. Specifying -1 also indicates an infinite time-out period.
- receiver IPEndPoint
- Agent.
- registry UserRegistry
- The user registry.
- udpSocket Socket
- The UDP Socket to use to send/receive.
Return Value
ISnmpMessageUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ISnmpMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also