IMapTKey, TValueUnlock Method Hazelcast .Net Client Class Library
Releases the lock for the specified key.

Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.7.1
Syntax

void Unlock(
	TKey key
)

Parameters

key
Type: TKey
key to lock.
Exceptions

ExceptionCondition
SynchronizationLockExceptionif the current thread does not hold this lock
Remarks

Releases the lock for the specified key. It never blocks and returns immediately.

If the current thread is the holder of this lock then the hold count is decremented. If the hold count is now zero then the lock is released. If the current thread is not the holder of this lock then SynchronizationLockException is thrown.

Warning:

This method uses GetHashCode and Equals of binary form of the key, not the actual implementations of GetHashCode and Equals defined in key's class.
See Also

Reference