Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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