IsGrantedExtensions.CanRead(IRequestSecurityStrategy, IObjectSpace, Object, String) Method
Checks whether the current user can read the specified object. If the optional memberName parameter is specified, the method checks whether the current user can read the specified object member.
Namespace: DevExpress.ExpressApp.Security
Assembly: DevExpress.ExpressApp.Security.v25.2.dll
NuGet Package: DevExpress.ExpressApp.Security
Declaration
public static bool CanRead(
this IRequestSecurityStrategy security,
IObjectSpace objectSpace,
object targetObject,
string memberName = null
)
Parameters
| Name | Type | Description |
|---|---|---|
| security | IRequestSecurityStrategy | An object that specifies the application’s security strategy. |
| objectSpace | IObjectSpace | An Object Space used to obtain data to calculate this security criterion. |
| targetObject | Object | The target object to check. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| memberName | String | null | A name of the target object’s member to check. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
See Also