IMemoryCacheManager.ReleaseCache(MemoryCache) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes all references to a cache in the host environment.
public:
void ReleaseCache(System::Runtime::Caching::MemoryCache ^ cache);
public void ReleaseCache (System.Runtime.Caching.MemoryCache cache);
abstract member ReleaseCache : System.Runtime.Caching.MemoryCache -> unit
Public Sub ReleaseCache (cache As MemoryCache)
Parameters
- cache
- MemoryCache
A reference to the cache.
Remarks
If a cache has previously registered itself with the host environment, the cache can call the ReleaseCache method to release the reference. When a cache is being disposed, it should call the ReleaseCache method to make sure that no reference to the cache is held on the host.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.