SPContext.ClearCachedWeb 方法

删除以前已为此上下文缓存 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
)

参数

返回值

类型:System.Boolean
true如果在缓存中找到并成功移除,则 web否则为false。

备注

如果调用此方法,则网站将不会再释放自动请求的末尾。

另请参阅

引用

SPContext 类

SPContext 成员

Microsoft.SharePoint 命名空间