This documentation is archived and is not being maintained.

MemoryCache::Default Property

Gets a reference to the default MemoryCache instance.

Namespace:  System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

public:
static property MemoryCache^ Default {
	MemoryCache^ get ();
}

Property Value

Type: System.Runtime.Caching::MemoryCache
The default instance of the cache.

This property always returns a reference to the default cache instance. For typical application scenarios, only one instance of MemoryCache is required.

Because the default cache instance is not created by the constructor, you must use configuration to explicitly set the memory and polling values for the default cache instance. For more information, see <memoryCache> Element (Cache Settings).

.NET Framework

Supported in: 4

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: