CacheSection::DisableMemoryCollection Property
Gets or sets a value indicating whether the cache memory collection is disabled.
Assembly: System.Web (in System.Web.dll)
[ConfigurationPropertyAttribute(L"disableMemoryCollection", DefaultValue = false)] public: property bool DisableMemoryCollection { bool get (); void set (bool value); }
Property Value
Type: System::Booleantrue if the cache memory collection is disabled; otherwise, false. The default is false.
If the DisableMemoryCollection property is set to true, calls to the cache-related API will have no effect.
If the DisableMemoryCollection property is set to true, the cache does not attempt to collect unused items. Use caution when using this setting, as disabling memory collection can quickly lead to Out of Memory conditions for the application.
This setting has no effect on the ASP.NET internal cache or on the output cache. For more information about the different types of cache, see ASP.NET Caching.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, 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.