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
- webNode
Type: Microsoft.SharePoint.Publishing.Navigation.PortalWebSiteMapNode
PortalWebSiteMapNode object that represents the Web site that contains the list of interest.
- listName
Type: System.String
Name of the list of interest.
- contextWeb
Type: Microsoft.SharePoint.SPWeb
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.