Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal oid As String, _ ByVal description As String _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim oid As String Dim description As String Dim instance As New NotificationMessage(oid, description) |
C# | |
---|---|
public NotificationMessage( string oid, string description ) |
Managed Extensions for C++ | |
---|---|
public: NotificationMessage( string* oid, string* description ) |
C++/CLI | |
---|---|
public: NotificationMessage( String^ oid, String^ description ) |
Parameters
- oid
- The Oid value to be carried.
- description
- A description of the notification provided by the source MIB.
This constructor will create a version 2 message. When the message is encoded the first variable is an instance of a sysUpTime Variable (with the value initialized to MessageBase.SysUpTime) and the second variable is an instance of an snmpTrapOID Variable with the parameter oid as its value.
sysUpTime and snmpTrapOID are exposed as properties, and are not presented in MessageBase.Variables. Additional variables can be included as variables accessed through MessageBase.Variables.
Target Platforms: Microsoft .NET Framework 2.0