Back to Devexpress

EnvironmentPolicy.GotVariable Event

corelibraries-devexpress-dot-data-dot-utils-dot-environmentpolicy-2bc99248.md

latest2.8 KB
Original Source

EnvironmentPolicy.GotVariable Event

Fires after the DevExpress control has read the value of the environment variable.

Namespace : DevExpress.Data.Utils

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public static event EventHandler<EnvironmentPolicy.GotEnvironmentVariableEventArgs> GotVariable
vb
Public Shared Event GotVariable As EventHandler(Of EnvironmentPolicy.GotEnvironmentVariableEventArgs)

Event Data

The GotVariable event's data class is EnvironmentPolicy.GotEnvironmentVariableEventArgs. The following properties provide information specific to this event:

PropertyDescription
NameGets the environment variable name.
TargetGets the location where an environment variable is stored.
ValueGets or sets the value of the environment variable.
ValuesGets environment variable names and their values.

The event data class exposes the following methods:

MethodDescription
ToString()Returns a human-readable representation of the GotEnvironmentVariableEventArgs object.

Remarks

The EnvironmentPolicy fires the GotVariable event after the DevExpress control has read the value of the environment variable (e.Name). Use the e.Value event parameter to modify the variable value if necessary.

Read the following topic for additional information: Environment Policy.

See Also

GettingVariable

SuppressGettingEnvironmentVariables()

EnvironmentPolicy Class

EnvironmentPolicy Members

DevExpress.Data.Utils Namespace