Method FromTrapData
- Assembly
- Skyline.DataMiner.Utils.SNMP.Traps.Protocol.dll
FromTrapData(object)
Parses the trap object received from SLProtocol into a TrapInfo object.
public static TrapInfo FromTrapData(object trapInfo)
Parameters
trapInfo
objectThe trap info object when the TrapOID@setBindings attribute set to "allBindingInfo".
Returns
- TrapInfo
An object of type TrapInfo.
Examples
TrapInfo trap = TrapInfo.FromTrapData(trapInfo);
Exceptions
- ArgumentNullException
trapInfo
is null.- ArgumentException
trapInfo
is invalid.