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




trapName
The TrapName enumerated type to use.
enterprise
The value of the enterprise.
Creates a generic trap from the specified TrapName and enterprise.

Syntax

Visual Basic (Declaration) 
Public Function CreateGenericTrapMessage( _
   ByVal trapName As TrapName, _
   ByVal enterprise As String _
) As TrapMessage
Visual Basic (Usage)Copy Code
Dim instance As MibTraps
Dim trapName As TrapName
Dim enterprise As String
Dim value As TrapMessage
 
value = instance.CreateGenericTrapMessage(trapName, enterprise)
C# 
public TrapMessage CreateGenericTrapMessage( 
   TrapName trapName,
   string enterprise
)
Managed Extensions for C++ 
public: TrapMessage* CreateGenericTrapMessage( 
   TrapName trapName,
   string* enterprise
) 
C++/CLI 
public:
TrapMessage^ CreateGenericTrapMessage( 
   TrapName trapName,
   String^ enterprise
) 

Parameters

trapName
The TrapName enumerated type to use.
enterprise
The value of the enterprise.

Return Value

A generic TrapMessage with the specified enterprise

Remarks

The trapName parameter is an enumeration of trap names. TrapMessages cannot be created from dynamically added traps using this method.

For Enterprise-specific traps, use CreateSpecificTrapMessage.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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