Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
ConverterCollections..::.ConverterNamedCache..::.Lock Method (Object)
ConverterCollections..::.ConverterNamedCache Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Attempt to lock the specified item and return immediately.

Namespace: Tangosol.Util
Assembly: Coherence (in Coherence.dll) Version: 3.6.0.0 (3.6.0.0)

# Syntax

C#
    public virtual bool Lock(
    	Object key
    )

#### Parameters

key
  Type: System..::.Object
  Key being locked.

#### Return Value

true if the item was successfully locked; false otherwise.

#### Implements

IConcurrentCache..::.Lock(Object)

# Remarks

This method behaves exactly as if it simply performs the call Lock(key, 0).

# See Also

ConverterCollections..::.ConverterNamedCache Class
Lock Overload
Tangosol.Util Namespace