SecuritySystem.IsGranted(IObjectSpace, Type, String, Object, String) Method
In This Article
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 |
---|---|---|
object |
IObject |
An IObject |
object |
Type | A target object type. |
operation | String | A string which is the name of the requested operation. Operation names are declared as the Security |
target |
Object | A target object. |
member |
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