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) | ![]() |
---|---|
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.
Target Platforms: Microsoft .NET Framework 2.0