![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | IMapInterceptorInterceptPut Method |
Intercept put operation before modifying map data.
Namespace:
Hazelcast.Map
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
SyntaxObject InterceptPut(
Object oldValue,
Object newValue
)
Function InterceptPut (
oldValue As Object,
newValue As Object
) As Object
Object^ InterceptPut(
Object^ oldValue,
Object^ newValue
)
abstract InterceptPut :
oldValue : Object *
newValue : Object -> Object
Parameters
- oldValue
- Type: SystemObject
the value currently in map - newValue
- Type: SystemObject
the new value to be put
Return Value
Type:
Objectnew value after intercept operation
Remarks
Intercept put operation before modifying map data.
Return the object to be put into the map.
Returning null will cause the put(..) operation to operate as expected, namely no interception.
Throwing an exception will cancel the put operation.
See Also