Skip to main content
All docs
V24.2

EnvironmentPolicy.SuppressAll() Method

Suppresses all requests to System.Environment. No exception is thrown.

Namespace: DevExpress.Data.Utils

Assembly: DevExpress.Data.v24.2.dll

Declaration

public static void SuppressAll()

Remarks

The following example suppresses all requests to System.Environment initiated by DevExpress controls:

using System;
using System.Windows.Forms;

namespace EnvironmentPolicyDemo {
    internal static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DevExpress.Data.Utils.EnvironmentPolicy.SuppressAll();
            Application.Run(new Form1());
        }
    }
}

Tip

Read the following topic for additional information: Environment Policy.

See Also