DfwpCacheRead method
Collapse the table of content
Expand the table of content

DataFormWebPart.DfwpCacheRead method

Reads an item from the cache, based on a key.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

protected virtual Object DfwpCacheRead(
	Storage storage,
	string key,
	bool forceSharedAppCache


Type: Microsoft.SharePoint.WebPartPages.Storage

An enumeration that specifies how the property will be stored.

Type: System.String

The identifier for the cache item to retrieve.

Type: System.Boolean

true to causing the caching code to not generate a key scoped to the current page or Web Part state; otherwise, false.

Return value

Type: System.Object
The identifier for the cache item to retrieve.

This method computes a per-user key when non-shared storage is specified. The forceSharedAppCache parameter allows calling applications to cache items such as linked XSLs across pages.

Certain types of requests cannot use the Web Part cache.

© 2015 Microsoft