EnvironmentPolicy.GettingVariable Event
Fires when the DevExpress control attempts to retrieve the value of the environment variable from the current process. Handle this event to allow or suppress the operation.
Namespace: DevExpress.Data.Utils
Assembly: DevExpress.Data.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
public static event EventHandler<EnvironmentPolicy.GettingEnvironmentVariableRequestEventArgs> GettingVariable
#Event Data
The GettingVariable event's data class is EnvironmentPolicy.GettingEnvironmentVariableRequestEventArgs. 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 Cancel |
Name | Gets the environment variable name. |
Target | Gets the location where an environment variable is stored. |
The event data class exposes the following methods:
Method | Description |
---|---|
To |
Returns a human-readable representation of the Getting object.
|
#Remarks
Use e.Name
and e.Target
event parameters to obtain the name and location of the environment variable.
Use the e.Cancel
event parameter to allow or suppress the operation.
Read the following topic for additional information: Environment Policy.