SnmpSource Help

Trap Members

Trap overview

Public Instance Constructors

Trap Constructor Constructor of Trap class. The default trap listening port is 162. If the computer running this trap receive has firewall installed. You should unblock port 162 to receive trap.

Public Instance Properties

IsLogging Enable/Disable logging.
LogFileName The log file name. The default name is "debug.log"
TrapListenPort The trap listen port. Default 162.

Public Instance Methods

Disable Disable the trap listening.
Enable Enable the trap listening.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
ToString (inherited from Object) Returns a String that represents the current Object.

Public Instance Events

TrapProcesses Customer code should handle the trap process.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Trap Class | SnmpSource Namespace