ObjectCache.Contains(String, String) ObjectCache.Contains(String, String) ObjectCache.Contains(String, String) Method

Definition

When overridden in a derived class, checks whether the cache entry already exists in the cache.

public abstract bool Contains (string key, string regionName = null);
abstract member Contains : string * string -> bool
Public MustOverride Function Contains (key As String, Optional regionName As String = null) As Boolean

Parameters

key
String String String

A unique identifier for the cache entry.

regionName
String String String

Optional. A named region in the cache where the cache can be found, if regions are implemented. The default value for the optional parameter is null.

Returns

true if the cache contains a cache entry with the same key value as key; otherwise, false.

Applies to