|
BroTableContains Method |
Determines whether this
BroTable contains specified key/value
pair.
Namespace: BroccoliSharpAssembly: BroccoliSharp (in BroccoliSharp.dll) Version: 1.0.5434.15853
Syntax public bool Contains(
KeyValuePair<BroValue, BroValue> pair
)
Public Function Contains (
pair As KeyValuePair(Of BroValue, BroValue)
) As Boolean
abstract Contains :
pair : KeyValuePair<BroValue, BroValue> -> bool
override Contains :
pair : KeyValuePair<BroValue, BroValue> -> bool
public final boolean Contains(
KeyValuePair<BroValue, BroValue> pair
)
Parameters
- pair
- Type: System.Collections.GenericKeyValuePairBroValue, BroValue
The key/value pair to locate in this BroTable.
Return Value
Type:
Booleantrue if key/value
pair is found in this
BroTable; otherwise,
false.
Implements
ICollectionTContains(T)Exceptions 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