Skip to main content
All docs
V25.1
  • 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.1.dll

    NuGet Package: DevExpress.Data

    #Declaration

    #Event Data

    The GettingVariable event's data class is EnvironmentPolicy.GettingEnvironmentVariableRequestEventArgs. 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.
    Target Gets the location where an environment variable is stored.

    The event data class exposes the following methods:

    Method Description
    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