AccessSettings.StaticResources Property
In This Article
Provides access to the AccessSettings class’s instance that allows you to specify static resource access settings.
Namespace: DevExpress.Security.Resources
Assembly: DevExpress.Data.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
public static AccessSettings StaticResources { get; }
#Property Value
Type | Description |
---|---|
Access |
The object that allows you to set static resource access rules. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Static |
---|---|
Access |
|
Access |
|
Access |
Static
|
#Remarks
Static resources include images.
Use the SetRules(IAccessRule[]) method of the object that this property returns to specify static resource access rules.
// 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