共用方式為


DataFormWebPart.DfwpCacheWrite method

寫入快取中,根據索引鍵的項目。

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

Syntax

'宣告
Protected Overridable 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 virtual void DfwpCacheWrite(
    Storage storage,
    string key,
    bool forceSharedAppCache,
    Object value,
    int timeoutSecs
)

參數

  • forceSharedAppCache
    Type: System.Boolean

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

  • timeoutSecs
    Type: System.Int32

    32 位元帶正負號的整數,代表的時間,以秒為單位,直到要求失敗。

備註

指定非共用存放裝置時,這個方法會計算每個使用者金鑰。forceSharedAppCache參數可讓呼叫應用程式快取的項目,例如連結的 Xsl 跨頁。

某些類型的要求不能使用 [網頁組件快取。

請參閱

參照

DataFormWebPart class

DataFormWebPart members

Microsoft.SharePoint.WebPartPages namespace