SnmpMessageExtensionGetResponseAsync(ISnmpMessage, IPEndPoint, UserRegistry, Socket, CancellationToken) Method |
Namespace: Lextm.SharpSnmpLib.MessagingAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static Task<ISnmpMessage> GetResponseAsync(
this ISnmpMessage request,
IPEndPoint receiver,
UserRegistry registry,
Socket udpSocket,
CancellationToken token
)
<ExtensionAttribute>
Public Shared Function GetResponseAsync (
request As ISnmpMessage,
receiver As IPEndPoint,
registry As UserRegistry,
udpSocket As Socket,
token As CancellationToken
) As Task(Of ISnmpMessage)
Dim request As ISnmpMessage
Dim receiver As IPEndPoint
Dim registry As UserRegistry
Dim udpSocket As Socket
Dim token As CancellationToken
Dim returnValue As Task(Of ISnmpMessage)
returnValue = request.GetResponseAsync(receiver,
registry, udpSocket, token)
public:
[ExtensionAttribute]
static Task<ISnmpMessage^>^ GetResponseAsync(
ISnmpMessage^ request,
IPEndPoint^ receiver,
UserRegistry^ registry,
Socket^ udpSocket,
CancellationToken token
)
[<ExtensionAttribute>]
static member GetResponseAsync :
request : ISnmpMessage *
receiver : IPEndPoint *
registry : UserRegistry *
udpSocket : Socket *
token : CancellationToken -> Task<ISnmpMessage>
Parameters
- request ISnmpMessage
- The ISnmpMessage.
- receiver IPEndPoint
- Agent.
- registry UserRegistry
- The user registry.
- udpSocket Socket
- The UDP Socket to use to send/receive.
- token CancellationToken
- The cancellation token.
Return Value
TaskISnmpMessageUsage 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