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
oid
stringThe OID of the trap variable binding to get.
variableBinding
TrapInfoVariableBindingWhen 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
true
if the collection contains a trap variable binding with the specified OID; otherwisefalse
.
Exceptions
- ArgumentNullException
oid
is null.