corelibraries-devexpress-dot-data-dot-utils-dot-environmentpolicy-f9006d7d.md
Fires when the DevExpress control attempts to set the path of the current working directory. 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.PathRequestEventArgs> SettingCurrentDirectory
Public Shared Event SettingCurrentDirectory As EventHandler(Of EnvironmentPolicy.PathRequestEventArgs)
The SettingCurrentDirectory event's data class is EnvironmentPolicy.PathRequestEventArgs. 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. |
| Path | Gets or sets the path of the current working directory. |
The event data class exposes the following methods:
| Method | Description |
|---|---|
| ToString() | Returns a human-readable representation of the ReadCurrentProcessDataEventArgs object. |
Use the e.Path event parameter to obtain the path of the current working directory.
Use the e.Cancel event parameter to allow or suppress the operation.
Read the following topic for additional information: Environment Policy.
See Also