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

    IsGrantedExtensions.CanNavigate(IRequestSecurityStrategy, String, Type, Object) Method

    Checks whether the current user can navigate to an object with the specified key.

    Namespace: DevExpress.ExpressApp.Security

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

    Declaration

    public static bool CanNavigate(
        this IRequestSecurityStrategy security,
        string itemPath,
        Type type,
        object targetObjectKey
    )

    Parameters

    Name Type Description
    security IRequestSecurityStrategy

    An object that specifies the application’s security strategy.

    itemPath String

    The path to the navigation item.

    type Type

    The object’s type.

    targetObjectKey Object

    The object’s key.

    Returns

    Type Description
    Boolean

    true, if the current user can navigate to an object with the specified key; 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