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
)
參數
storage
Type: Microsoft.SharePoint.WebPartPages.Storage列舉型別,指定屬性儲存的方式。
key
Type: System.String寫入快取項目識別碼。
forceSharedAppCache
Type: System.Boolean若要防止快取的程式碼產生金鑰只限於目前的頁面或 [網頁組件的狀態 ; true否則, false。
value
Type: System.Object物件,表示項目。
timeoutSecs
Type: System.Int3232 位元帶正負號的整數,表示的時間,以秒為單位,直到快取的項目過期為止。
備註
如果IsGhosted是true , storage是Shared,則這個覆寫會將項目插入Cache與timeoutSecs的到期日。