Method TryGetValue
- Assembly
- Skyline.DataMiner.Utils.SNMP.Traps.Protocol.dll
TryGetValue(string, out TrapInfoVariableBinding)
Gets the trap variable binding associated with the specified OID.
public bool TryGetValue(string oid, out TrapInfoVariableBinding variableBinding)
Parameters
oidstringThe OID of the trap variable binding to get.
variableBindingTrapInfoVariableBindingWhen this method returns, contains the value associated with the specified OID, if the OID is found; otherwise, null. This parameter is passed uninitialized.
Returns
- bool
trueif the collection contains a trap variable binding with the specified OID; otherwisefalse.
Exceptions
- ArgumentNullException
oidis null.