Skip to main content

UrlAccessSecurityLevelSetting.RegisterCustomBaseDirectories(String[]) Method

OBSOLETE

Use the DevExpress.Security.Resources.AccessSettings.StaticResources.TrySetRules method instead.

Enables using the “file://“ protocol for loading images to the specified directories.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

[Obsolete("Use the DevExpress.Security.Resources.AccessSettings.StaticResources.TrySetRules method instead.")]
public static bool RegisterCustomBaseDirectories(
    params string[] baseDirectories
)

Parameters

Name Type Description
baseDirectories String[]

An array of String values, specifying the custom directories.

Returns

Type Description
Boolean

true, if loading images to custom directories is enabled; otherwise, false.

Remarks

On calling this method, the UrlAccessSecurityLevelSetting.SecurityLevel property becomes set to UrlAccessSecurityLevel.Custom.

This method returns false if registering custom directories has failed (for example, if another directory has already been specified by the Document Viewer).

See Also