A newer version of this page is available. Switch to the current version.

DirectoryAccessRule.Deny(String[]) Method

Creates the DirectoryAccessRule that denies resource load from the file directories passed as the parameter.

Namespace: DevExpress.Security.Resources

Assembly: DevExpress.Data.v19.1.dll


public static DirectoryAccessRule Deny(
    params string[] directories


Name Type Description
directories String[]

An array of file directories that this rule denies. Other directories are considered as allowed in this application.


Type Description

An instance of the DirectoryAccessRule class.


You can pass nothing as the method’s parameter to create a rule that denies access to all file directories:

// Image load from file directories is denied

Pass the file directories that should not be accessible in the application to deny resource loading from them:

// Image load from the specified file directories is denied. Images from other directories are accessible.
See Also