Skip to main content
A newer version of this page is available. .

CustomAccessRule.CheckUri Event

Occurs when URI accessibility is checked.

Namespace: DevExpress.Security.Resources

Assembly: DevExpress.Data.v20.2.dll

NuGet Packages: DevExpress.Data, DevExpress.WindowsDesktop.Data

Declaration

public event Func<Uri, bool> CheckUri

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