MessengerSendTrapV1Async(EndPoint, IPAddress, OctetString, ObjectIdentifier, GenericCode, Int32, UInt32, IListVariable, CancellationToken) Method |
Sends a TRAP v1 message.
Namespace: Lextm.SharpSnmpLib.MessagingAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static Task SendTrapV1Async(
EndPoint receiver,
IPAddress agent,
OctetString community,
ObjectIdentifier enterprise,
GenericCode generic,
int specific,
uint timestamp,
IList<Variable> variables,
CancellationToken token
)
Public Shared Function SendTrapV1Async (
receiver As EndPoint,
agent As IPAddress,
community As OctetString,
enterprise As ObjectIdentifier,
generic As GenericCode,
specific As Integer,
timestamp As UInteger,
variables As IList(Of Variable),
token As CancellationToken
) As Task
Dim receiver As EndPoint
Dim agent As IPAddress
Dim community As OctetString
Dim enterprise As ObjectIdentifier
Dim generic As GenericCode
Dim specific As Integer
Dim timestamp As UInteger
Dim variables As IList(Of Variable)
Dim token As CancellationToken
Dim returnValue As Task
returnValue = Messenger.SendTrapV1Async(receiver,
agent, community, enterprise, generic,
specific, timestamp, variables, token)
public:
static Task^ SendTrapV1Async(
EndPoint^ receiver,
IPAddress^ agent,
OctetString^ community,
ObjectIdentifier^ enterprise,
GenericCode generic,
int specific,
unsigned int timestamp,
IList<Variable^>^ variables,
CancellationToken token
)
static member SendTrapV1Async :
receiver : EndPoint *
agent : IPAddress *
community : OctetString *
enterprise : ObjectIdentifier *
generic : GenericCode *
specific : int *
timestamp : uint32 *
variables : IList<Variable> *
token : CancellationToken -> Task
Parameters
- receiver EndPoint
- Receiver.
- agent IPAddress
- Agent.
- community OctetString
- Community name.
- enterprise ObjectIdentifier
- Enterprise OID.
- generic GenericCode
- Generic code.
- specific Int32
- Specific code.
- timestamp UInt32
- Timestamp.
- variables IListVariable
- Variable bindings.
- token CancellationToken
- The cancellation token.
Return Value
Task
RemarksThis method only supports SNMP v1.
See Also