| 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 enterpriseThe 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.
Target Platforms: Microsoft .NET Framework 2.0
 
     
     
     
    