Dart.Snmp Namespace > Trap1Message Class > Trap1Message Constructor : Trap1Message Constructor(Int32,Int32,String,Int64) |
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)
public Trap1Message( int genericTrap, int specificTrap, string enterprise, long sysUpTime )
public: Trap1Message( int genericTrap, int specificTrap, string* enterprise, long sysUpTime )
public: Trap1Message( int genericTrap, int specificTrap, String^ enterprise, int64 sysUpTime )
Exception | Description |
---|---|
System.OverflowException | sysUpTime is less than UInt32.MinValue or greater than UInt32.MaxValue. |
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.