![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | ITransactionalMapTKey, TValueGetForUpdate Method |
Locks the key and then gets and returns the value to which the specified key is mapped.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
SyntaxTValue GetForUpdate(
Object key
)
Function GetForUpdate (
key As Object
) As TValue
TValue GetForUpdate(
Object^ key
)
abstract GetForUpdate :
key : Object -> 'TValue
Parameters
- key
- Type: SystemObject
Return Value
Type:
TValue
Remarks
Locks the key and then gets and returns the value to which the specified key is mapped.
Lock will be released at the end of the transaction (either commit or rollback).
See Also