项目读取**[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
)
参数
storage
类型:Microsoft.SharePoint.WebPartPages.Storage一个枚举,指定如何存储项目。
key
类型:System.String若要获取的缓存项的标识符。
forceSharedAppCache
类型:System.Boolean若要防止缓存的代码生成密钥范围限定为当前页或 Web 部件的状态 ; true否则为false。
返回值
类型:System.Object
检索到的缓存项。
备注
如果IsGhostedtrue ,并且storageShared,此重写将从跨 web 应用程序共享Cache读取项目。