Back to Devexpress

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

expressappframework-devexpress-dot-expressapp-dot-securitysystem-dot-isgrantednavigate-x28-system-dot-string-system-dot-type-system-dot-object-devexpress-dot-expressapp-dot-iobjectspace-x29.md

latest2.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public static bool IsGrantedNavigate(
    string itemPath,
    Type objectType,
    object targetObject,
    IObjectSpace objectSpace
)
vb
Public Shared Function IsGrantedNavigate(
    itemPath As String,
    objectType As Type,
    targetObject As Object,
    objectSpace As IObjectSpace
) As Boolean

Parameters

NameTypeDescription
itemPathString

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

TypeDescription
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

SecuritySystem Class

SecuritySystem Members

DevExpress.ExpressApp Namespace