NET Caching Library Help
Contains Method (BaseCacheProvider)




KellermanSoftware.NetCachingLibrary.CacheProviders Namespace > BaseCacheProvider Class : Contains Method
A unique identifier for the cache entry.
Optional. A named region in the cache where the cache can be found. The default value for the optional parameter is Default
Check whether the cache entry already exists in the cache.
Syntax
'Declaration
 
Public MustOverride Function Contains( _
   ByVal key As System.String, _
   Optional ByVal regionName As System.String _
) As System.Boolean
'Usage
 
Dim instance As BaseCacheProvider
Dim key As System.String
Dim regionName As System.String
Dim value As System.Boolean
 
value = instance.Contains(key, regionName)
public abstract System.bool Contains( 
   System.string key,
   System.string regionName
)
public: abstract System.bool Contains( 
   System.string* key,
   System.string* regionName
) 
public:
abstract System.bool Contains( 
   System.String^ key,
   System.String^ regionName
) 

Parameters

key
A unique identifier for the cache entry.
regionName
Optional. A named region in the cache where the cache can be found. The default value for the optional parameter is Default

Return Value

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

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BaseCacheProvider Class
BaseCacheProvider Members