Click or drag to resize
BroccoliSharp BroTableContains Method
Determines whether this BroTable contains specified key/value pair.

Namespace: BroccoliSharp
Assembly: BroccoliSharp (in BroccoliSharp.dll) Version: 1.0.5434.15853
Syntax
public bool Contains(
	KeyValuePair<BroValue, BroValue> pair
)

Parameters

pair
Type: System.Collections.GenericKeyValuePairBroValue, BroValue
The key/value pair to locate in this BroTable.

Return Value

Type: Boolean
true if key/value pair is found in this BroTable; otherwise, false.

Implements

ICollectionTContains(T)
Exceptions
ExceptionCondition
ObjectDisposedExceptionCannot execute dictionary operation, BroTable is disposed.
Remarks

This function looks for an exact match of both the key and the value using a linear search. If you simply want to know if the table contains a key, use the optimal ContainsKey(BroValue) function instead.

This method performs a linear search - an O(n) operation where n is Count.

See Also