Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
ThreadGate..::.IncrementThreadLocalCount Method
ThreadGate Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Increment the long value from the LocalDataStoreSlot for the current thread by one.

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

# Syntax

C#
    protected virtual long IncrementThreadLocalCount(
    	LocalDataStoreSlot slot
    )

#### Parameters

slot
  Type: System..::.LocalDataStoreSlot
  LocalDataStoreSlot object which provides managed thread local storage with dynamic data slots that are unique to a thread and application-domain combination.

#### Return Value

The new long value for the current thread or 1 if previous value was null.

# Remarks

If the value in the LocalDataStoreSlot is null, 1 is returned.

# See Also

ThreadGate Class
Tangosol.Util Namespace