Gets a Boolean value that indicates whether this response was obtained from the cache.
Assembly: System (in System.dll)
Syntax . . :: . Boolean
true if the response was taken from the cache; otherwise, false.
Public Overridable ReadOnly Property IsFromCache As Booleanpublic virtual bool IsFromCache { get; }public:
virtual property bool IsFromCache {
bool get ();
}abstract IsFromCache : bool
override IsFromCache : boolProperty Value
Type: Systemtrue if the response was taken from the cache; otherwise, false.
Remarks
The current cache policy and the presence of the requested resource in the cache determine whether a response can be retrieved from the cache. Using cached responses usually improves application performance, but there is a risk that the response in the cache does not match the response on the server. Use the CachePolicy property to set and the RequestCachePolicy class to enumerate the current caching policy.
Platforms
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.