PowerSNMP for .NET
CreateGenericTrapMessage Method




The TrapName enumerated type to use.
The value of the enterprise.
System uptime, usually taken from Agent.SysUpTime.
Creates a generic trap from the specified TrapName and enterprise.
Syntax
Public Function CreateGenericTrapMessage( _
   ByVal trapName As TrapName, _
   ByVal enterprise As String, _
   ByVal sysUpTime As Long _
) As Trap1Message
Dim instance As MibTraps
Dim trapName As TrapName
Dim enterprise As String
Dim sysUpTime As Long
Dim value As Trap1Message
 
value = instance.CreateGenericTrapMessage(trapName, enterprise, sysUpTime)
public Trap1Message CreateGenericTrapMessage( 
   TrapName trapName,
   string enterprise,
   long sysUpTime
)
public: Trap1Message* CreateGenericTrapMessage( 
   TrapName trapName,
   string* enterprise,
   long sysUpTime
) 
public:
Trap1Message^ CreateGenericTrapMessage( 
   TrapName trapName,
   String^ enterprise,
   int64 sysUpTime
) 

Parameters

trapName
The TrapName enumerated type to use.
enterprise
The value of the enterprise.
sysUpTime
System uptime, usually taken from Agent.SysUpTime.

Return Value

A generic Trap1Message with the specified enterprise
Remarks

For Enterprise-specific traps, use CreateSpecificTrapMessage.

See Also

Reference

MibTraps Class
MibTraps Members


PowerSNMP for .NET Documentation Version 8.0
© 2024 Dart Communications. All Rights Reserved.
Send comments on this topic