Table of Contents

Method TryGetValue

Namespace
Skyline.DataMiner.Utils.SNMP.Traps.Protocol
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 string

The OID of the trap variable binding to get.

variableBinding TrapInfoVariableBinding

When 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; otherwise false.

Exceptions

ArgumentNullException

oid is null.