PowerSNMP for .NET CF
GetByTrapName Method
See Also  Send comments on this topic.
Dart.Snmp Namespace > MibTraps Class : GetByTrapName Method




trapName
The name of the MibTrap to get.
Returns the MibTrap with the given name.

Syntax

Visual Basic (Declaration) 
Public Function GetByTrapName( _
   ByVal trapName As Enum _
) As MibTrap
Visual Basic (Usage)Copy Code
Dim instance As MibTraps
Dim trapName As Enum
Dim value As MibTrap
 
value = instance.GetByTrapName(trapName)
C# 
public MibTrap GetByTrapName( 
   Enum trapName
)
Managed Extensions for C++ 
public: MibTrap* GetByTrapName( 
   Enum* trapName
) 
C++/CLI 
public:
MibTrap^ GetByTrapName( 
   Enum^ trapName
) 

Parameters

trapName
The name of the MibTrap to get.

Return Value

A MibTrap

Remarks

The trapName parameter is an enumeration of trap names. Intrinsic names are provided by the Dart.Snmp.TrapName enumeration. Trap names from imported MIB files are provided by the Dart.Snmp.Mib.TrapName enumeration.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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