Click or drag to resize
BroccoliSharp BroRecordAdd Method (Object, BroType, String, String)
Adds new value of type to this BroRecord with specified fieldName.

Namespace: BroccoliSharp
Assembly: BroccoliSharp (in BroccoliSharp.dll) Version: 1.0.5434.15853
Syntax
public bool Add(
	Object value,
	BroType type,
	string fieldName = "",
	string typeName = null
)

Parameters

value
Type: SystemObject
The value to add to record as a field.
type
Type: BroccoliSharpBroType
The BroType of the value.
fieldName (Optional)
Type: SystemString
Name of field to add to record, can be empty string for BroType.List source.
typeName (Optional)
Type: SystemString
Optional name of specialized type of value.

Return Value

Type: Boolean
true if successful; otherwise, false.
Exceptions
ExceptionCondition
ObjectDisposedExceptionCannot add item, BroRecord is disposed.
Remarks
Field name is optional when using Bro record as a BroType.List.
See Also