Share via


SPNavigationSiteMapNode.IsAccessibleToUser Method (SPWeb)

Returns whether or not the user specified by the context has permission to access this node (or the object represented by this node).

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

Syntax

'Declaration
Public Overrides Function IsAccessibleToUser ( _
    contextWeb As SPWeb _
) As Boolean
'Usage
Dim instance As SPNavigationSiteMapNode
Dim contextWeb As SPWeb
Dim returnValue As Boolean

returnValue = instance.IsAccessibleToUser(contextWeb)
public override bool IsAccessibleToUser(
    SPWeb contextWeb
)

Parameters

Return Value

Type: System.Boolean

Remarks

The node will not be returned in child collections if this method returns false. This method emulates the security trimming performed on Windows SharePoint ServicesSPNavigationNodes.

See Also

Reference

SPNavigationSiteMapNode Class

SPNavigationSiteMapNode Members

IsAccessibleToUser Overload

Microsoft.SharePoint.Publishing.Navigation Namespace