PowerSNMP for .NET
CreateSpecificTrapMessage Method




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

Parameters

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

Return Value

A specific Trap1Message.
Remarks

The trapName parameter is an enumeration of trap names; the enum is contained in the Mib Code File generated by MibNodes.GenerateCode. Traps cannot be created from dynamically loaded traps using this method; use the Trap1Message constructor directly instead.

For generic traps such as warmstart, use CreateGenericTrapMessage.

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