BaseXsltListWebPart.DfwpCacheWrite 方法

写入**[T:HYPERLINK"https://msdn.microsoft.com/en-us/library/system.web.caching.aspx"System.Web.Caching.Cache]**基于键的项。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
    类型:System.Boolean

    若要防止缓存的代码生成密钥范围限定为当前页或 Web 部件的状态 ; true否则为false。

  • timeoutSecs
    类型:System.Int32

    32 位有符号的整数值,该值代表的时间以秒为单位,直到缓存的项目的过期时间。

备注

如果IsGhostedtrue ,并且storageShared,此重写会将项插入CachetimeoutSecs过期。

另请参阅

引用

BaseXsltListWebPart 类

BaseXsltListWebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间