BaseXsltListWebPart.DfwpCacheRead Method

Reads an item from the Cache based on a key.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Overrides Function DfwpCacheRead ( _
    storage As Storage, _
    key As String, _
    forceSharedAppCache As Boolean _
) As Object
'Usage
Dim storage As Storage
Dim key As String
Dim forceSharedAppCache As Boolean
Dim returnValue As Object

returnValue = Me.DfwpCacheRead(storage, _
    key, forceSharedAppCache)
protected override Object DfwpCacheRead(
    Storage storage,
    string key,
    bool forceSharedAppCache
)

Parameters

  • key
    Type: System.String

    The identifier of the cache item to get.

  • forceSharedAppCache
    Type: System.Boolean

    true to prevent the caching code from generating a key scoped to the current page or Web Part state; otherwise, false.

Return Value

Type: System.Object
The retrieved cache item.

Remarks

If IsGhosted is true and storage is Shared, this override will read the item from the Cache that is shared across the web application.

See Also

Reference

BaseXsltListWebPart Class

BaseXsltListWebPart Members

Microsoft.SharePoint.WebPartPages Namespace