Back to Devexpress

EnvironmentPolicy.ExpandingVariables Event

corelibraries-devexpress-dot-data-dot-utils-dot-environmentpolicy-f9d00948.md

latest2.9 KB
Original Source

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

NuGet Package : DevExpress.Data

Declaration

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

Event Data

The ExpandingVariables event's data class is EnvironmentPolicy.ExpandingEnvironmentVariablesRequestEventArgs. 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.

The event data class exposes the following methods:

MethodDescription
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

ExpandedVariables

SuppressGettingEnvironmentVariables()

SuppressSettingEnvironmentVariables()

EnvironmentPolicy Class

EnvironmentPolicy Members

DevExpress.Data.Utils Namespace