TrapNode Event
Lists module trap information.
Syntax
public event OnTrapNodeHandler OnTrapNode; public delegate void OnTrapNodeHandler(object sender, MibbrowserTrapNodeEventArgs e); public class MibbrowserTrapNodeEventArgs : EventArgs { public string TrapName { get; } public int SpecificTrap { get; } public string TrapEnterprise { get; } public string TrapVariables { get; } public string TrapDescription { get; } public string TrapReferences { get; } public string TrapModuleName { get; } public string TrapFileName { get; } }
Public Event OnTrapNode As OnTrapNodeHandler Public Delegate Sub OnTrapNodeHandler(sender As Object, e As MibbrowserTrapNodeEventArgs) Public Class MibbrowserTrapNodeEventArgs Inherits EventArgs Public ReadOnly Property TrapName As String Public ReadOnly Property SpecificTrap As Integer Public ReadOnly Property TrapEnterprise As String Public ReadOnly Property TrapVariables As String Public ReadOnly Property TrapDescription As String Public ReadOnly Property TrapReferences As String Public ReadOnly Property TrapModuleName As String Public ReadOnly Property TrapFileName As String End Class
Remarks
When calling ListTraps, the TrapNode event fires once for every trap found in the module.
The following are the descriptions of the event parameters:
TrapName | The name of the trap (its label). |
TrapSpecificTrap | The specific id of this trap. |
TrapEnterprise | The defining entity. |
TrapVariables | A comma separated list of the symbols that should be present inside the trap. |
TrapDescription | A textual memo about the node. |
TrapModuleName | The module that contains the trap definition. |
TrapFileName | The filename of the MIB where the trap is defined. |
If a trap has been defined in more than one module or file, then ModuleName and FileName will contain a comma separated list of values.