BaseXsltListWebPart.DfwpCacheRead 方法

项目读取**[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 Function DfwpCacheRead ( _
    storage As Storage, _
    key As String, _
    forceSharedAppCache As Boolean _
) As Object
用法
Dim storage As Storage
Dim key As String
Dim forceSharedAppCache As Boolean
Dim returnValue As Object

returnValue = Me.DfwpCacheRead(storage, _
    key, forceSharedAppCache)
protected override Object DfwpCacheRead(
    Storage storage,
    string key,
    bool forceSharedAppCache
)

参数

  • key
    类型:System.String

    若要获取的缓存项的标识符。

  • forceSharedAppCache
    类型:System.Boolean

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

返回值

类型:System.Object
检索到的缓存项。

备注

如果IsGhostedtrue ,并且storageShared,此重写将从跨 web 应用程序共享Cache读取项目。

另请参阅

引用

BaseXsltListWebPart 类

BaseXsltListWebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间