Share via


BaseXsltListWebPart.DfwpCacheWrite Method

Writes an item to 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 Sub DfwpCacheWrite ( _
    storage As Storage, _
    key As String, _
    forceSharedAppCache As Boolean, _
    value As Object, _
    timeoutSecs As Integer _
)
'Usage
Dim storage As Storage
Dim key As String
Dim forceSharedAppCache As Boolean
Dim value As Object
Dim timeoutSecs As Integer

Me.DfwpCacheWrite(storage, key, forceSharedAppCache, _
    value, timeoutSecs)
protected override void DfwpCacheWrite(
    Storage storage,
    string key,
    bool forceSharedAppCache,
    Object value,
    int timeoutSecs
)

Parameters

  • 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.

  • timeoutSecs
    Type: System.Int32

    A 32-bit signed integer that represents the time, in seconds, until the cached item expires.

Remarks

If IsGhosted is true and storage is Shared, this override inserts the item into the Cache with an expiration of timeoutSecs.

See Also

Reference

BaseXsltListWebPart Class

BaseXsltListWebPart Members

Microsoft.SharePoint.WebPartPages Namespace