Back to Devexpress

EnvironmentPolicy.GettingVariable Event

corelibraries-devexpress-dot-data-dot-utils-dot-environmentpolicy-6e3d20c4.md

latest2.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

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

Event Data

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

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
NameGets the environment variable name.
TargetGets the location where an environment variable is stored.

The event data class exposes the following methods:

MethodDescription
ToString()Returns a human-readable representation of the GettingEnvironmentVariableRequestEventArgs 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.

See Also

GotVariable

SuppressGettingEnvironmentVariables()

EnvironmentPolicy Class

EnvironmentPolicy Members

DevExpress.Data.Utils Namespace