corelibraries-devexpress-dot-data-dot-utils-dot-environmentpolicy-f9d00948.md
Fires when the DevExpress control attempts to replace names of environment variables using the Environment.ExpandEnvironmentVariables(String) method. 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.ExpandingEnvironmentVariablesRequestEventArgs> ExpandingVariables
Public Shared Event ExpandingVariables As EventHandler(Of EnvironmentPolicy.ExpandingEnvironmentVariablesRequestEventArgs)
The ExpandingVariables event's data class is EnvironmentPolicy.ExpandingEnvironmentVariablesRequestEventArgs. 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. |
| Name | Gets the environment variable name. |
The event data class exposes the following methods:
| Method | Description |
|---|---|
| ToString() | Returns a human-readable representation of the ExpandingEnvironmentVariablesRequestEventArgs object. |
The e.Name event parameter returns a string that contains names of zero or more environment variables. Each environment variable is quoted with the percent sign character (%).
Use the e.Cancel event parameter to allow or suppress the operation.
See Also
SuppressGettingEnvironmentVariables()