PowerSNMP for .NET CF
NotificationMessage Constructor
See Also  Send comments on this topic.
Dart.Snmp Namespace > NotificationMessage Class : NotificationMessage Constructor




oid
The Oid value to be carried.
description
A description of the notification provided by the source MIB.
Initializes a new instance of the NotificationMessage class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal oid As String, _
   ByVal description As String _
)
Visual Basic (Usage)Copy Code
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.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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