Skip to main content
All docs
V25.1
  • 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.1.dll

    NuGet Package: DevExpress.Data

    #Declaration

    public static event EventHandler<EnvironmentPolicy.PathRequestEventArgs> SettingCurrentDirectory

    #Event Data

    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.

    #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