Skip to main content
All docs
V26.1
  • RegistryAccessPolicy.ThrowAlways() Method

    Throws an exception when the control accesses the system registry.

    Namespace: DevExpress.Data.Utils

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

    Declaration

    public static void ThrowAlways()

    Remarks

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

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

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

    See Also