Click or drag to resize

WrapperNamedCacheItem Property

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

Namespace:  Tangosol.Net.Cache
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public virtual Object this[
	Object key
] { get; set; }

Parameters

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

Return Value

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

Implements

IDictionaryItemObject
Exceptions
ExceptionCondition
InvalidCastException If the key is of an inappropriate type for this cache.
NullReferenceException If the key is null and this cache does not permit null keys.
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.

See Also