Skip to main content
All docs
V25.1
  • .NET 8.0+

    IsGrantedExtensions.CanNavigate<T>(IRequestSecurityStrategy, String) Method

    Checks whether the current user can navigate to the specified item.

    Namespace: DevExpress.ExpressApp.Security

    Assembly: DevExpress.ExpressApp.Security.v25.1.dll

    Declaration

    public static bool CanNavigate<T>(
        this IRequestSecurityStrategy security,
        string itemPath
    )

    Parameters

    Name Type Description
    security IRequestSecurityStrategy

    An object that specifies the application’s security strategy.

    itemPath String

    The path to the navigation item.

    Type Parameters

    Name Description
    T

    The object’s type.

    Returns

    Type Description
    Boolean

    true, if the current user can navigate to the specified item; otherwise, false.

    Remarks

    Use this method in applications with the obsolete Deny Permission Policy only. In applications with the Allow/Deny Permission Policy, use the CanNavigate(IRequestSecurityStrategy, String) overload.

    See Also