EnvironmentPolicy.ExpandingVariables Event
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.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
public static event EventHandler<EnvironmentPolicy.ExpandingEnvironmentVariablesRequestEventArgs> ExpandingVariables
#Event Data
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 Cancel |
Name | Gets the environment variable name. |
The event data class exposes the following methods:
Method | Description |
---|---|
To |
Returns a human-readable representation of the Expanding object.
|
#Remarks
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.