共用方式為


BaseXsltListWebPart.DfwpCacheWrite method

將項目寫入至**[T:HYPERLINK"https://msdn.microsoft.com/en-us/library/system.web.caching.aspx"System.Web.Caching.Cache]**根據索引鍵。

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

Syntax

'宣告
Protected Overrides Sub DfwpCacheWrite ( _
    storage As Storage, _
    key As String, _
    forceSharedAppCache As Boolean, _
    value As Object, _
    timeoutSecs As Integer _
)
'用途
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
)

參數

  • forceSharedAppCache
    Type: System.Boolean

    若要防止快取的程式碼產生金鑰只限於目前的頁面或 [網頁組件的狀態 ; true否則, false。

  • timeoutSecs
    Type: System.Int32

    32 位元帶正負號的整數,表示的時間,以秒為單位,直到快取的項目過期為止。

備註

如果IsGhosted是true , storage是Shared,則這個覆寫會將項目插入Cache與timeoutSecs的到期日。

請參閱

參照

BaseXsltListWebPart class

BaseXsltListWebPart members

Microsoft.SharePoint.WebPartPages namespace