Back to Devexpress

EnvironmentPolicy.SettingCurrentDirectory Event

corelibraries-devexpress-dot-data-dot-utils-dot-environmentpolicy-f9006d7d.md

latest2.7 KB
Original Source

EnvironmentPolicy.SettingCurrentDirectory Event

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

Declaration

csharp
public static event EventHandler<EnvironmentPolicy.PathRequestEventArgs> SettingCurrentDirectory
vb
Public Shared Event SettingCurrentDirectory As EventHandler(Of EnvironmentPolicy.PathRequestEventArgs)

Event Data

The SettingCurrentDirectory event's data class is EnvironmentPolicy.PathRequestEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
PathGets or sets the path of the current working directory.

The event data class exposes the following methods:

MethodDescription
ToString()Returns a human-readable representation of the ReadCurrentProcessDataEventArgs object.

Remarks

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

SetCurrentDirectory

SuppressSettingCurrentDirectory()

EnvironmentPolicy Class

EnvironmentPolicy Members

DevExpress.Data.Utils Namespace