Skip to main content
.NET 6.0+

IsGrantedExtensions.CanReadByUser(SecurityStrategy, IPermissionPolicyUser, IObjectSpace, Object, String) Method

For internal use.

Namespace: DevExpress.ExpressApp.Security

Assembly: DevExpress.ExpressApp.Security.v24.1.dll

Declaration

public static bool CanReadByUser(
    this SecurityStrategy security,
    IPermissionPolicyUser targetUser,
    IObjectSpace objectSpace,
    object targetObject,
    string memberName = null
)

Parameters

Name Type Description
security SecurityStrategy

A SecurityStrategy object that specifies an application’s Security Strategy.

targetUser IPermissionPolicyUser

An IPermissionPolicyUser object that is a user this method checks.

objectSpace IObjectSpace

An Object Space this method uses to get an object to check.

targetObject Object

An Object this method checks.

Optional Parameters

Name Type Default Description
memberName String null

A String that is a name of the targetObject‘s member this method checks. This parameter is optional.

Returns

Type Description
Boolean

true, if the specified user can read the specified object or its member; otherwise, false.

See Also