Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DfwpCacheWrite method
Collapse the table of content
Expand the table of content

DataFormWebPart.DfwpCacheWrite method

Writes an item to the cache, based on a key.

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

protected virtual void DfwpCacheWrite(
	Storage storage,
	string key,
	bool forceSharedAppCache,
	Object value,
	int timeoutSecs


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 cause the caching code to not generate a key scoped to the current page or Web Part state; otherwise, false.

Type: System.Object

An object representing a value.

Type: System.Int32

A 32-bit signed integer representing the time, in seconds, until the request fails.

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