Skip to main content
All docs
V25.1
  • RegistryAccessPolicy.SuppressWriteOperations() Method

    Suppresses requests to write to the system registry.

    Namespace: DevExpress.Data.Utils

    Assembly: DevExpress.Data.Desktop.v25.1.dll

    NuGet Packages: DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design

    Declaration

    public static void SuppressWriteOperations()

    Remarks

    Call the SuppressWriteOperations method at application startup to apply a restrictive policy:

    static void Main() {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        DevExpress.Data.Utils.RegistryAccessPolicy.SuppressWriteOperations();
        Application.Run(new Form1());
    }
    

    Read the following topic for additional information: Registry Access Policy.

    See Also