corelibraries-devexpress-dot-data-dot-utils-dot-environmentpolicy-221b8c5b.md
Fires when the DevExpress control attempts to read current process data (for example, CurrentDirectory, ProcessId, ProcessPath). 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.ReadingCurrentProcessDataEventArgs> ReadingCurrentProcessData
Public Shared Event ReadingCurrentProcessData As EventHandler(Of EnvironmentPolicy.ReadingCurrentProcessDataEventArgs)
The ReadingCurrentProcessData event's data class is EnvironmentPolicy.ReadingCurrentProcessDataEventArgs. 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. |
| Parameter | Gets the name of the process parameter. |
The event data class exposes the following methods:
| Method | Description |
|---|---|
| ToString() | Returns a human-readable representation of the ReadingCurrentProcessDataEventArgs object. |
Use the e.Parameter event parameter to obtain the name of the process parameter.
Use the e.Cancel event parameter to allow or suppress the operation.
Read the following topic for additional information: Environment Policy.
See Also