|
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: BroccoliSharpAssembly: 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
)
Public Function Add (
key As Object,
keyType As BroType,
value As Object,
valueType As BroType,
Optional keyTypeName As String = Nothing,
Optional valueTypeName As String = Nothing
) As Boolean
member Add :
key : Object *
keyType : BroType *
value : Object *
valueType : BroType *
?keyTypeName : string *
?valueTypeName : string
(* Defaults:
let _keyTypeName = defaultArg keyTypeName null
let _valueTypeName = defaultArg valueTypeName null
*)
-> bool
public boolean Add(
Object key,
BroType keyType,
Object value,
BroType valueType,
String keyTypeName = null,
String valueTypeName = null
)
function Add(key, keyType, value, valueType, keyTypeName, valueTypeName);
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:
Booleantrue if successful; otherwise,
false.
Exceptions 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