删除以前已为此上下文缓存 web。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function ClearCachedWeb ( _
key As String _
) As Boolean
用法
Dim instance As SPContext
Dim key As String
Dim returnValue As Boolean
returnValue = instance.ClearCachedWeb(key)
public bool ClearCachedWeb(
string key
)
参数
key
类型:System.String指定缓存 web 时的项。
返回值
类型:System.Boolean
true如果在缓存中找到并成功移除,则 web否则为false。
备注
如果调用此方法,则网站将不会再释放自动请求的末尾。