Skip to main content
.NET 8.0+

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

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public static bool IsGranted(
    IObjectSpace objectSpace,
    Type objectType,
    string operation,
    object targetObject,
    string memberName
)

Parameters

Name Type Description
objectSpace IObjectSpace

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

objectType Type

A target object type.

operation String

A string which is the name of the requested operation. Operation names are declared as the SecurityOperations class’ constants.

targetObject Object

A target object.

memberName String

A string which is the name of the target object’s member.

Returns

Type Description
Boolean

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

Remarks

You can also use the IsGrantedExtensions class methods to check if the specified permission is granted to the current user.

See Also