PowerSNMP for .NET
MibTrap Constructor




Generic trap value. Use 6 if a specificTrap value is provided.
If genericTrap is 6, provide an enterprise-specific trap value here.
The human-readable trap name.
Use 'snmp' for generic traps, and other values specified in the MIB for specific traps.
A list of comma delimited variable names present in the trap.
A description found in the MIB.
The module name that identifies where the trap is described.
Constructs a MibTrap initialized to the specified values.
Syntax
Public Function New( _
   ByVal genericTrap As Integer, _
   ByVal specificTrap As Integer, _
   ByVal name As String, _
   ByVal enterprise As String, _
   ByVal variables As String, _
   ByVal description As String, _
   ByVal module As String _
)
Dim genericTrap As Integer
Dim specificTrap As Integer
Dim name As String
Dim enterprise As String
Dim variables As String
Dim description As String
Dim module As String
 
Dim instance As New MibTrap(genericTrap, specificTrap, name, enterprise, variables, description, module)

Parameters

genericTrap
Generic trap value. Use 6 if a specificTrap value is provided.
specificTrap
If genericTrap is 6, provide an enterprise-specific trap value here.
name
The human-readable trap name.
enterprise
Use 'snmp' for generic traps, and other values specified in the MIB for specific traps.
variables
A list of comma delimited variable names present in the trap.
description
A description found in the MIB.
module
The module name that identifies where the trap is described.
See Also

Reference

MibTrap Class
MibTrap Members

6.1.1.2
PowerSNMP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic