Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
Returns the value to which this cache maps the specified key.

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

Syntax

C#
public virtual Object this[
	Object key
] { get; set; }

Parameters

key
Type: System..::..Object
Key whose associated value is to be returned.

Return Value

The value to which this cache maps the specified key, or null if the cache contains no mapping for this key.

Implements

IDictionary..::..Item[([( Object])])

Remarks

Returns null if the cache contains no mapping for this key. A return value of null does not necessarily indicate that the cache contains no mapping for the key; it's also possible that the cache explicitly maps the key to null.

The Contains(Object) operation may be used to distinguish these two cases.

Exceptions

ExceptionCondition
System..::..InvalidCastException If the key is of an inappropriate type for this cache.
System..::..NullReferenceException If the key is null and this cache does not permit null keys.

See Also