SnmpMessageExtensionSendAsync(ISnmpMessage, EndPoint, Socket, CancellationToken) Method |
Namespace: Lextm.SharpSnmpLib.MessagingAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static Task SendAsync(
this ISnmpMessage message,
EndPoint manager,
Socket socket,
CancellationToken token
)
<ExtensionAttribute>
Public Shared Function SendAsync (
message As ISnmpMessage,
manager As EndPoint,
socket As Socket,
token As CancellationToken
) As Task
Dim message As ISnmpMessage
Dim manager As EndPoint
Dim socket As Socket
Dim token As CancellationToken
Dim returnValue As Task
returnValue = message.SendAsync(manager,
socket, token)
public:
[ExtensionAttribute]
static Task^ SendAsync(
ISnmpMessage^ message,
EndPoint^ manager,
Socket^ socket,
CancellationToken token
)
[<ExtensionAttribute>]
static member SendAsync :
message : ISnmpMessage *
manager : EndPoint *
socket : Socket *
token : CancellationToken -> Task
Parameters
- message ISnmpMessage
- The ISnmpMessage.
- manager EndPoint
- Manager
- socket Socket
- The socket.
- token CancellationToken
- The cancellation token.
Return Value
TaskUsage 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