Skip to main content
All docs
V24.2

EnvironmentPolicy.ExitingProcessEventArgs.ToString() Method

Returns a human-readable representation of the ExitingProcessEventArg object, which can be useful for debugging, logging, or understanding the failure.

Namespace: DevExpress.Data.Utils

Assembly: DevExpress.Data.v24.2.dll

Declaration

public override string ToString()

Returns

Type Description
String

The string representation of the ExitingProcessEventArgs object.

Remarks

[STAThread]
static void Main()
{
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    DevExpress.Data.Utils.EnvironmentPolicy.ExitingProcess += EnvironmentPolicy_ExitingProcess;
    Application.Run(new Form1());
}

static void EnvironmentPolicy_ExitingProcess(object sender, DevExpress.Data.Utils.EnvironmentPolicy.ExitingProcessEventArgs e)
{
    if (e.ExitCode != 0)
        Log.Append(e.ToString);
}
See Also