![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | IHCollectionTAddItemListener Method |
Adds an item listener for this collection.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
Syntaxstring AddItemListener(
IItemListener<T> listener,
bool includeValue
)
Function AddItemListener (
listener As IItemListener(Of T),
includeValue As Boolean
) As String
String^ AddItemListener(
IItemListener<T>^ listener,
bool includeValue
)
abstract AddItemListener :
listener : IItemListener<'T> *
includeValue : bool -> string
Parameters
- listener
- Type: Hazelcast.CoreIItemListenerT
item listener - includeValue
- Type: SystemBoolean
true updated item should be passed
to the item listener, false otherwise.
Return Value
Type:
Stringreturns registration id.
Remarks
Adds an item listener for this collection. Listener will get notified
for all collection add/remove events.
See Also