Click or drag to resize

SNMPAddTrap Method

Method to add user configurable trap to the corresponding collection. The valid trap numbers are from 1 and 4000.

Namespace: Crestron.SimplSharpPro
Assembly: SimplSharpPro (in SimplSharpPro.dll) Version: 2.21.121
Syntax
C#
public static void AddTrap(
	uint number,
	string trapDataToSend
)

Parameters

number  UInt32
User defined number of the trap.
trapDataToSend  String
Serial data to be sent out when the trap is triggered.
Exceptions
ExceptionCondition
SigNumberInvalidExceptionInvalid number passed for trap.
NotSupportedException SNMP is not supported
ArgumentException Trap with specified number already exists.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also