NET Caching Library Help
GetCount Method (BaseCacheProvider)




KellermanSoftware.NetCachingLibrary.CacheProviders Namespace > BaseCacheProvider Class : GetCount Method
Optional. A named region in the cache for which the cache entry count should be computed. The default value for the optional parameter is Default
Gets the total number of cache entries in the cache.
Syntax
'Declaration
 
Public MustOverride Function GetCount( _
   Optional ByVal regionName As System.String _
) As System.Long
'Usage
 
Dim instance As BaseCacheProvider
Dim regionName As System.String
Dim value As System.Long
 
value = instance.GetCount(regionName)
public abstract System.long GetCount( 
   System.string regionName
)
public: abstract System.long GetCount( 
   System.string* regionName
) 
public:
abstract System.int64 GetCount( 
   System.String^ regionName
) 

Parameters

regionName
Optional. A named region in the cache for which the cache entry count should be computed. The default value for the optional parameter is Default

Return Value

The number of cache entries in the cache. If regionName is not null, the count indicates the number of entries that are in the specified cache region.
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