CacheManager.Contains Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

Returns true if key refers to item current stored in cache

Namespace: Microsoft.Practices.EnterpriseLibrary.Caching
Assembly: Microsoft.Practices.EnterpriseLibrary.Caching (in Microsoft.Practices.EnterpriseLibrary.Caching.dll)

Syntax

'Declaration
Public Function Contains ( _
    key As String _
) As Boolean
public bool Contains(
    string key
)
public:
virtual bool Contains(
    String^ key
) sealed
public final function Contains(
    key : String
) : boolean

Parameters

Return Value

True if item referenced by key is in the cache

Implements

ICacheManager.Contains(String)

See Also

CacheManager Class

Microsoft.Practices.EnterpriseLibrary.Caching Namespace