Skip to main content
.NET 6.0+

SecuritySystem.IsGrantedNavigate(String, Type, Object, IObjectSpace) Method

Checks whether or not the specified navigation permission is granted to the current user.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public static bool IsGrantedNavigate(
    string itemPath,
    Type objectType,
    object targetObject,
    IObjectSpace objectSpace
)

Parameters

Name Type Description
itemPath String

A string specifying the navigation item path. The delimiter is the slash character (“/“).

objectType Type

A target object type.

targetObject Object

A target object.

objectSpace IObjectSpace

An IObjectSpace object which is the Object Space used to process the request.

Returns

Type Description
Boolean

true, if the specified permission is granted; otherwise, false.

Remarks

The objectType and targetObject parameters should not be null when the SecurityStrategy.SupportNavigationPermissionsForTypes property is set to true and you use navigation permissions determined in the Type Permissions tab. If this property is set to false or you use only navigation permissions in the Navigation Permissions tab, you can pass this parameter as null.

See Also