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
storage
Type: Microsoft.SharePoint.WebPartPages.StorageAn enumeration that specifies how the property will be stored.
key
Type: System.StringThe ID for the cache item to write to.
forceSharedAppCache
Type: System.Booleantrue to prevent the caching code from generating a key scoped to the current page or Web Part state; otherwise, false.
value
Type: System.ObjectAn object that represents the item.
timeoutSecs
Type: System.Int32A 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.