Sdílet prostřednictvím


CacheFactory.GetCacheManager Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Returns the default CacheManager instance. The same instance should be returned each time this method is called. The name of the instance to treat as the default CacheManager is defined in the configuration file. Guaranteed to return an intialized CacheManager if no exception thrown

Namespace:  Microsoft.Practices.EnterpriseLibrary.Caching
Assembly:  Microsoft.Practices.EnterpriseLibrary.Caching (in Microsoft.Practices.EnterpriseLibrary.Caching.dll)

Syntax

'Declaration
PublicSharedFunctionGetCacheManagerAs CacheManager
publicstatic CacheManager GetCacheManager()
public:
static CacheManager^ GetCacheManager()
publicstaticfunctionGetCacheManager() : CacheManager

Return Value

Default cache manager instance.

Exceptions

Exception Condition
System.Configuration.ConfigurationException Unable to create default CacheManager

See Also

CacheFactory Class

GetCacheManager Overload

Microsoft.Practices.EnterpriseLibrary.Caching Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.