Back to Devexpress

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

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

latest2.9 KB
Original Source

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

NuGet Package : DevExpress.ExpressApp

Declaration

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

Parameters

NameTypeDescription
objectSpaceIObjectSpace

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

TypeDescription
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

Use the Security System

SecuritySystem Class

SecuritySystem Members

DevExpress.ExpressApp Namespace