Construct and send SNMP v2 Trap

Namespace: SnmpSharpNet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)

Syntax

C#
public void SendV2Trap(
	IpAddress receiver,
	int receiverPort,
	string community,
	uint senderUpTime,
	Oid trapObjectID,
	VbCollection varList
)
Visual Basic
Public Sub SendV2Trap ( _
	receiver As IpAddress, _
	receiverPort As Integer, _
	community As String, _
	senderUpTime As UInteger, _
	trapObjectID As Oid, _
	varList As VbCollection _
)
Visual C++
public:
void SendV2Trap(
	IpAddress^ receiver, 
	int receiverPort, 
	String^ community, 
	unsigned int senderUpTime, 
	Oid^ trapObjectID, 
	VbCollection^ varList
)

Parameters

receiver
Type: SnmpSharpNet..::..IpAddress
Trap receiver IP address
receiverPort
Type: System..::..Int32
Trap receiver UDP port number
community
Type: System..::..String
SNMP community name
senderUpTime
Type: System..::..UInt32
Sender sysUpTime
trapObjectID
Type: SnmpSharpNet..::..Oid
Trap ObjectID
varList
Type: SnmpSharpNet..::..VbCollection
Variable binding list

See Also