SPContext.GetCachedWeb method

Retrieves a web that was cached for this context.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public Function GetCachedWeb ( _
    key As String _
) As SPWeb
Dim instance As SPContext
Dim key As String
Dim returnValue As SPWeb

returnValue = instance.GetCachedWeb(key)
public SPWeb GetCachedWeb(
    string key


  • key
    Type: System.String

    The key specified when caching the web.

Return value

Type: Microsoft.SharePoint.SPWeb
A web that was cached for this context

See also


SPContext class

SPContext members

Microsoft.SharePoint namespace