PowerSNMP for .NET CF
MibTrap Constructor
See Also  Send comments on this topic.
Dart.Snmp Namespace > MibTrap Class : MibTrap Constructor




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.
Constructs a MibTrap initialized to the specified values.

Syntax

Visual Basic (Declaration) 
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 _
)
Visual Basic (Usage)Copy Code
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)
C# 
public MibTrap( 
   int genericTrap,
   int specificTrap,
   string name,
   string enterprise,
   string variables,
   string description,
   string module
)
Managed Extensions for C++ 
public: MibTrap( 
   int genericTrap,
   int specificTrap,
   string* name,
   string* enterprise,
   string* variables,
   string* description,
   string* module
)
C++/CLI 
public:
MibTrap( 
   int genericTrap,
   int specificTrap,
   String^ name,
   String^ enterprise,
   String^ variables,
   String^ description,
   String^ 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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.