Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SiteMapProviderAdapter.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 Overrides Sub IsAccessibleToUser( _
   ByVal context As HttpContext, _
   ByVal node As SiteMapNode _
) _
    Implements ISiteMapProvider.IsAccessibleToUser
[C#]
public override 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.

Implements

ISiteMapProvider.IsAccessibleToUser

Exceptions

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

See Also

SiteMapProviderAdapter Class | Spring.Web.Providers Namespace