PortalSiteMapProvider.GetCachedList method

Gets a PortalListSiteMapNode object that represents a specified SPList object.

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

Syntax

'Declaration
Public Function GetCachedList ( _
    webNode As PortalWebSiteMapNode, _
    listName As String, _
    contextWeb As SPWeb _
) As PortalListSiteMapNode
'Usage
Dim instance As PortalSiteMapProvider
Dim webNode As PortalWebSiteMapNode
Dim listName As String
Dim contextWeb As SPWeb
Dim returnValue As PortalListSiteMapNode

returnValue = instance.GetCachedList(webNode, _
    listName, contextWeb)
public PortalListSiteMapNode GetCachedList(
    PortalWebSiteMapNode webNode,
    string listName,
    SPWeb contextWeb
)

Parameters

  • contextWeb
    Type: Microsoft.SharePoint.SPWeb

    The Web site that exists within the context of the current user. For example, this parameter can be set to SPContext.Current.Web.

Return value

Type: Microsoft.SharePoint.Publishing.Navigation.PortalListSiteMapNode

Remarks

The contextWeb parameter determines the correct items to return.

See also

Reference

PortalSiteMapProvider class

PortalSiteMapProvider members

Microsoft.SharePoint.Publishing.Navigation namespace

PortalSiteMapProvider