SPContext.ClearCachedWeb method
Removes a web that has previously been cached for this context.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function ClearCachedWeb ( _
key As String _
) As Boolean
'Usage
Dim instance As SPContext
Dim key As String
Dim returnValue As Boolean
returnValue = instance.ClearCachedWeb(key)
public bool ClearCachedWeb(
string key
)
Parameters
key
Type: System.StringThe key specified when caching the web.
Return value
Type: System.Boolean
true if the web was found in the cache and successfully removed; otherwise false.
Remarks
If this method is called, the web will no longer be disposed automatically at the end of the request.