Click or drag to resize
BroccoliSharp BroTableAdd Method (BroValue, BroValue)
Adds an element with the provided key and value to this BroTable.

Namespace: BroccoliSharp
Assembly: BroccoliSharp (in BroccoliSharp.dll) Version: 1.0.5434.15853
Syntax
public bool Add(
	BroValue key,
	BroValue value
)

Parameters

key
Type: BroccoliSharpBroValue
The BroValue to use as the key of the element to add.
value
Type: BroccoliSharpBroValue
The BroValue to use as the value of the element to add.

Return Value

Type: Boolean
true if successful; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
ArgumentNullExceptionvalue is null.
ObjectDisposedExceptionCannot add key/value pair, BroTable is disposed.
Remarks
First item added to the table will determine the key and value type for all subsequent key/value pairs. Any key/value pairs attempted to be added that do not have the same types as the first key/value pair will fail to insert into the table.
See Also