NET Caching Library Help
Remove<T> Method (MemoryCacheProvider)




KellermanSoftware.NetCachingLibrary.CacheProviders Namespace > MemoryCacheProvider Class : Remove<T> Method
A unique identifier for the cache entry.
Optional. A named region in the cache to which the cache entry was removed. The default value for the optional parameter is Default
Removes the cache entry from the cache.
Syntax
'Declaration
 
Public Overrides Function Remove(Of T)( _
   ByVal key As System.String, _
   Optional ByVal regionName As System.String _
) As T
'Usage
 
Dim instance As MemoryCacheProvider
Dim key As System.String
Dim regionName As System.String
Dim value As T
 
value = instance.Remove(Of T)(key, regionName)
public override T Remove<T>( 
   System.string key,
   System.string regionName
)
public: T* Remove<T>( 
   System.string* key,
   System.string* regionName
) override 
public:
T^ Removegeneric<typename T>
( 
   System.String^ key,
   System.String^ regionName
) override 

Parameters

key
A unique identifier for the cache entry.
regionName
Optional. A named region in the cache to which the cache entry was removed. The default value for the optional parameter is Default

Type Parameters

T

Return Value

An object that represents the value of the removed cache entry that was specified by the key, or null if the specified entry was not found.
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