Back to Devexpress

EnvironmentPolicy Members

corelibraries-devexpress-dot-data-dot-utils-dot-environmentpolicy-dot-underscore-members.md

latest7.7 KB
Original Source

EnvironmentPolicy Members

Allows you to spot, analyze, and prohibit unwanted requests to System.Environment initiated by DevExpress controls.

Properties

NameDescription
ShouldThrowOnErrors staticGets a value that indicates whether the EnvironmentPolicy throws an exception if a request to System.Environment fails.

Methods

NameDescription
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetType()Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
SuppressAll() staticSuppresses all requests to System.Environment. No exception is thrown.
SuppressExitProcess() staticPrevents DevExpress controls from forcibly exiting the current process.
SuppressGettingEnvironmentVariables() staticPrevents DevExpress controls from reading environment variables.
SuppressReadingCurrentProcessData() staticPrevents DevExpress controls from reading current process data (for example, CurrentDirectory, ProcessId, ProcessPath).
SuppressReadingSpecialFolder(Environment.SpecialFolder) staticPrevents DevExpress controls from getting the path to the specified system special folder.
SuppressSettingCurrentDirectory() staticPrevents DevExpress controls from setting the current directory.
SuppressSettingEnvironmentVariables() staticPrevents DevExpress controls from setting environment variables.
ThrowAlways() staticThrows an exception when the DevExpress control accesses System.Environment.
ThrowOnErrors() staticThrows an exception if a request to System.Environment fails.
ToString()Returns a string that represents the current object. Inherited from Object.

Events

NameDescription
ExitingProcess staticFires when the DevExpress control attempts to exit the current process. Handle this event to allow or suppress the operation.
ExpandedVariables staticFires after environment variables are expanded within the given string and allows you to modify the result.
ExpandingVariables staticFires 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.
Failed staticAllows you to respond to associated failures (exceptions and errors).
GettingVariable staticFires 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.
GotVariable staticFires after the DevExpress control has read the value of the environment variable.
ReadCurrentProcessData staticFires after the DevExpress control has read current process data.
ReadingCurrentProcessData staticFires when the DevExpress control attempts to read current process data (for example, CurrentDirectory, ProcessId, ProcessPath). Handle this event to allow or suppress the operation.
ReadingSpecialFolder staticFires when the DevExpress control attempts to read the path to the system special folder (such as Program Files, Programs, System, or Startup). Handle this event to allow or suppress the operation.
ReadSpecialFolder staticFires after the DevExpress control has read the path to the system special folder (such as Program Files, Programs, System, or Startup).
SetCurrentDirectory staticFires after the DevExpress control has set the path of the current working directory.
SettingCurrentDirectory staticFires when the DevExpress control attempts to set the path of the current working directory. Handle this event to allow or suppress the operation.
SettingVariable staticFires when the DevExpress control attempts to set the value of the environment variable in the current process. Handle this event to allow or suppress the operation.
SetVariable staticFires after the DevExpress control has set the value of the environment variable.

See Also

EnvironmentPolicy Class

DevExpress.Data.Utils Namespace