PowerSNMP for .NET
InformMessage Constructor




System uptime, usually taken from Agent.SysUpTime. An Int64 is used because UInt32 is not CLS-compliant.
The Oid that identifies the trap.
Creates and initializes a new instance of the InformMessage class.
Syntax
Public Function New( _
   ByVal sysUpTime As Long, _
   ByVal oid As String _
)
Dim sysUpTime As Long
Dim oid As String
 
Dim instance As New InformMessage(sysUpTime, oid)
public InformMessage( 
   long sysUpTime,
   string oid
)
public: InformMessage( 
   long sysUpTime,
   string* oid
)
public:
InformMessage( 
   int64 sysUpTime,
   String^ oid
)

Parameters

sysUpTime
System uptime, usually taken from Agent.SysUpTime. An Int64 is used because UInt32 is not CLS-compliant.
oid
The Oid that identifies the trap.
Exceptions
ExceptionDescription
System.OverflowExceptionsysUpTime is less than UInt32.MinValue or greater than UInt32.MaxValue.
Remarks

This constructor will create a version 2 message that includes initializing the first 2 required variables. The first variable is set to an instance of a sysUpTime Variable and the second variable to an instance of an snmpTrapOID Variable with the parameter oid as its value.

See Also

Reference

InformMessage Class
InformMessage Members


PowerSNMP for .NET Documentation Version 8.0
© 2024 Dart Communications. All Rights Reserved.
Send comments on this topic