corelibraries-devexpress-dot-data-dot-utils-dot-environmentpolicy-bda30ceb.md
Fires when the DevExpress control attempts to read the path to the system special folder (such as Program Files, Programs, System, or Startup). Handle this event to allow or suppress the operation.
Namespace : DevExpress.Data.Utils
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public static event EventHandler<EnvironmentPolicy.SpecialFolderRequestEventArgs> ReadingSpecialFolder
Public Shared Event ReadingSpecialFolder As EventHandler(Of EnvironmentPolicy.SpecialFolderRequestEventArgs)
The ReadingSpecialFolder event's data class is EnvironmentPolicy.SpecialFolderRequestEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Cancel | Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs. |
| Folder | Gets the system special folder (such as Program Files, Programs, System, or Startup). |
| Option | Gets the option used for accessing a special folder. |
The event data class exposes the following methods:
| Method | Description |
|---|---|
| ToString() | Returns a human-readable representation of the SpecialFolderRequestEventArgs object. |
Use the e.Folder event parameter to obtain the system special folder.
Use the e.Cancel event parameter to allow or suppress the operation.
Read the following topic for additional information: Environment Policy.
See Also