Skip to main content
All docs
V24.2

EnvironmentPolicy.ReadingSpecialFolder Event

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.v24.2.dll

Declaration

public static event EventHandler<EnvironmentPolicy.SpecialFolderRequestEventArgs> ReadingSpecialFolder

Event Data

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.

Remarks

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