CustomAccessRule.CheckUri Event

Occurs when URI accessibility is checked.

Namespace: DevExpress.Security.Resources

Assembly: DevExpress.Data.v20.1.dll

Declaration

public event Func<Uri, bool> CheckUri
Public Event CheckUri As Func(Of Uri, Boolean)

Remarks

Handle this event to implement a custom logic that determines whether the requested URI is accessible.

CustomAccessRule customRule = new CustomAccessRule(AccessPermission.Allow);
customRule.CheckUri += uri => {
    // implement your logic here
    return true;
};

AccessSettings.StaticResources.SetRules(customRule);
See Also