Back to Devexpress

AccessSettings.StaticResources Property

corelibraries-devexpress-dot-security-dot-resources-dot-accesssettings-6f671b19.md

latest2.9 KB
Original Source

AccessSettings.StaticResources Property

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

Namespace : DevExpress.Security.Resources

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public static AccessSettings StaticResources { get; }
vb
Public Shared ReadOnly Property StaticResources As AccessSettings

Property Value

TypeDescription
AccessSettings

The object that allows you to set static resource access rules.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to StaticResources
AccessSettings

.DataResources .StaticResources

| | AccessSettings |

.ReportingSpecificResources .StaticResources

| | AccessSettings |

.StaticResources .StaticResources

|

Remarks

Static resources include images.

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

csharp
// Allow images to be loaded only from the "C:\\StaticResources\\" file directory and "http://mysite.dev" site
DevExpress.Security.Resources.AccessSettings.StaticResources.SetRules(DirectoryAccessRule.Allow("C:\\StaticResources\\"), UrlAccessRule.Allow("http://mysite.dev"));
vb
' Allow images to be loaded only from the "C:\\StaticResources\\" file directory and "http://mysite.dev" site
DevExpress.Security.Resources.AccessSettings.StaticResources.SetRules(DirectoryAccessRule.Allow("C:\\StaticResources\\"), UrlAccessRule.Allow("http://mysite.dev"))

See Also

AccessSettings Class

AccessSettings Members

DevExpress.Security.Resources Namespace