PowerSNMP for .NET
Trap1Message Constructor(Int32,Int32,String,Int64)




Indicates the generic trap number to use when building the message.
When genericTrap is 6, specificTrap identifies the enterprise-specific trap.
The Enterprise OID associated with the trap.
System uptime, usually taken from Agent.SysUpTime. An Int64 is used because UInt32 is not CLS-compliant.
Initializes a new instance of the Trap1Message class.
Syntax
Public Function New( _
   ByVal genericTrap As Integer, _
   ByVal specificTrap As Integer, _
   ByVal enterprise As String, _
   ByVal sysUpTime As Long _
)
Dim genericTrap As Integer
Dim specificTrap As Integer
Dim enterprise As String
Dim sysUpTime As Long
 
Dim instance As New Trap1Message(genericTrap, specificTrap, enterprise, sysUpTime)

Parameters

genericTrap
Indicates the generic trap number to use when building the message.
specificTrap
When genericTrap is 6, specificTrap identifies the enterprise-specific trap.
enterprise
The Enterprise OID associated with the trap.
sysUpTime
System uptime, usually taken from Agent.SysUpTime. An Int64 is used because UInt32 is not CLS-compliant.
Exceptions
ExceptionDescription
System.OverflowExceptionsysUpTime is less than UInt32.MinValue or greater than UInt32.MaxValue.
Remarks

This constructor will create a version 1 message.

The agent initiating the trap should set AgentAddress.

The application can add additional information by adding variables to MessageBase.Variables.

See Also

Reference

Trap1Message Class
Trap1Message Members
Overload List


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