SPContext.GetCachedWeb method

Retrieves a web that was cached for this context.

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

Syntax

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

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

Parameters

  • 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

Reference

SPContext class

SPContext members

Microsoft.SharePoint namespace