Skip to main content

AccessSettings.DataResources Property

Provides access to the AccessSettings class’s instance that allows you to specify data resource access settings.

Namespace: DevExpress.Security.Resources

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data

Declaration

public static AccessSettings DataResources { get; }

Property Value

Type Description
AccessSettings

The object that allows you to set access rules to data resources.

Remarks

Data resources include: JSON, Extract, and Excel data sources.

Use the SetRules(IAccessRule[]) method of the object that this property returns to specify data resource access rules.

// Allow JSON data load only from the "http://mysite.dev" URL
// Prohibit Excel data load (Excel data load from URLs is not supported)
DevExpress.Security.Resources.AccessSettings.DataResources.SetRules(UrlAccessRule.Allow("http://mysite.dev"), DirectoryAccessRule.Deny());

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataResources property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also