Click or drag to resize
BroccoliSharp BroTableAdd Method (Object, BroType, Object, BroType, String, String)
Adds an element with the provided key of keyType and value of valueType to this BroTable.

Namespace: BroccoliSharp
Assembly: BroccoliSharp (in BroccoliSharp.dll) Version: 1.0.5434.15853
Syntax
public bool Add(
	Object key,
	BroType keyType,
	Object value,
	BroType valueType,
	string keyTypeName = null,
	string valueTypeName = null
)

Parameters

key
Type: SystemObject
The key of the element to add.
keyType
Type: BroccoliSharpBroType
The BroType of the key.
value
Type: SystemObject
The value of the element to add.
valueType
Type: BroccoliSharpBroType
The BroType of the value.
keyTypeName (Optional)
Type: SystemString
Optional name of specialized type of key.
valueTypeName (Optional)
Type: SystemString
Optional name of specialized type of value.

Return Value

Type: Boolean
true if successful; otherwise, false.
Exceptions
ExceptionCondition
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