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
)
參數
storage
Type: Microsoft.SharePoint.WebPartPages.Storage列舉型別,指定屬性儲存的方式。
key
Type: System.String要擷取的快取項目識別項。
forceSharedAppCache
Type: System.Booleantrue快取的程式碼不會產生金鑰只限於目前的頁面或 [網頁組件的狀態 ;否則, false。
value
Type: System.Object表示值的物件。
timeoutSecs
Type: System.Int3232 位元帶正負號的整數,代表的時間,以秒為單位,直到要求失敗。
備註
指定非共用存放裝置時,這個方法會計算每個使用者金鑰。forceSharedAppCache參數可讓呼叫應用程式快取的項目,例如連結的 Xsl 跨頁。
某些類型的要求不能使用 [網頁組件快取。