NET Caching Library Help
GetCount Method (MemoryCacheProvider)




KellermanSoftware.NetCachingLibrary.CacheProviders Namespace > MemoryCacheProvider 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 for the specified region.
Syntax
'Declaration
 
Public Overrides Function GetCount( _
   Optional ByVal regionName As System.String _
) As System.Long
'Usage
 
Dim instance As MemoryCacheProvider
Dim regionName As System.String
Dim value As System.Long
 
value = instance.GetCount(regionName)
public override System.long GetCount( 
   System.string regionName
)
public: System.long GetCount( 
   System.string* regionName
) override 
public:
System.int64 GetCount( 
   System.String^ regionName
) override 

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

MemoryCacheProvider Class
MemoryCacheProvider Members