Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
Replaces the entry for the specified key only if currently mapped to the specified value.

Namespace: Tangosol.Net.Cache
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)

Syntax

C#
public static Object Replace(
	this IInvocableCache invocable,
	Object key,
	Object oldValue,
	Object newValue
)

Parameters

invocable
Type: Tangosol.Net.Cache..::..IInvocableCache
The interface it extends.
key
Type: System..::..Object
Key with which the specified value is associated.
oldValue
Type: System..::..Object
Value expected to be associated with the specified key.
newValue
Type: System..::..Object
Value to be associated with the specified key.

Return Value

True if the value was replaced.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IInvocableCache. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also