corelibraries-devexpress-dot-data-dot-utils-dot-environmentpolicy-9a39a04d.md
Fires after the DevExpress control has set the value of the environment variable.
Namespace : DevExpress.Data.Utils
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public static event EventHandler<EnvironmentPolicy.SetEnvironmentVariableEventArgs> SetVariable
Public Shared Event SetVariable As EventHandler(Of EnvironmentPolicy.SetEnvironmentVariableEventArgs)
The SetVariable event's data class is EnvironmentPolicy.SetEnvironmentVariableEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Name | Gets the environment variable name. |
| Target | Gets the location where an environment variable is stored. |
| Value | Gets the value of the environment variable. |
The event data class exposes the following methods:
| Method | Description |
|---|---|
| ToString() | Returns a human-readable representation of the SetEnvironmentVariableEventArgs object. |
The EnvironmentPolicy fires the SetVariable event after the DevExpress control has set the value of the environment variable (e.Name).
Read the following topic for additional information: Environment Policy.
See Also