Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ISiteMapProvider.IsAccessibleToUser Method

Retrieves a Boolean value indicating whether the specified SiteMapNode object can be viewed by the user in the specified context.

[Visual Basic]
Public Sub IsAccessibleToUser( _
   ByVal context As HttpContext, _
   ByVal node As SiteMapNode _
)
[C#]
bool IsAccessibleToUser(
   HttpContext context,
   SiteMapNode node
);

Parameters

context
The HttpContext that contains user information.
node
The SiteMapNode that is requested by the user.

Return Value

true if security trimming is enabled and node can be viewed by the user or security trimming is not enabled; otherwise, false.

Exceptions

Exception Type Condition
ArgumentNullException context is null.- or -node is null.

See Also

ISiteMapProvider Interface | Spring.Web.Providers Namespace