We are going to attempt to update/delete the keyed object

Namespace:  NHibernate.Cache
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Function Lock ( _
	key As CacheKey, _
	version As Object _
) As ISoftLock
C#
ISoftLock Lock(
	CacheKey key,
	Object version
)
Visual C++
ISoftLock^ Lock(
	CacheKey^ key, 
	Object^ version
)
JavaScript
function lock(key, version);

Parameters

key
Type: NHibernate.Cache..::.CacheKey
The key
version
Type: System..::.Object

Remarks

This method is used by "asynchronous" concurrency strategies.

Exceptions

See Also