Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines the type of caching being used by the Web server.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Protected ReadOnly Property CacheType As CacheType
Get
'Usage
Dim value As CacheType
value = Me.CacheType
protected CacheType CacheType { get; }
Type: Microsoft.SharePoint.WebPartPages.CacheType
A CacheType enumeration value.
If the type of caching for the Web server is set to Database (in the web.config file <WebPartCache Storage="Database" />), and code in a Web Part tries to cache an object that is not marked as Serializable, then the object is not be cached and performance is affected. To optimize your code, use the CacheType property to prevent caching from being used in this case.
Please sign in to use this experience.
Sign in