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

    NuGet Package: DevExpress.Data

    #Declaration

    #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 CancelEventArgs.
    Name Gets the environment variable name.

    The event data class exposes the following methods:

    Method Description
    ToString() Returns a human-readable representation of the ExpandingEnvironmentVariablesRequestEventArgs 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.

    See Also