Back to Devexpress

RegistryAccessPolicy.SuppressAllOperations() Method

corelibraries-devexpress-dot-data-dot-utils-dot-registryaccesspolicy.md

latest2.0 KB
Original Source

RegistryAccessPolicy.SuppressAllOperations() Method

Suppresses all requests to the system registry.

Namespace : DevExpress.Data.Utils

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

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

Declaration

csharp
public static void SuppressAllOperations()
vb
Public Shared Sub SuppressAllOperations

Remarks

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

csharp
static void Main() {
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    DevExpress.Data.Utils.RegistryAccessPolicy.SuppressAllOperations();
    Application.Run(new Form1());
}
vb
Shared Sub Main()
  Application.EnableVisualStyles()
  Application.SetCompatibleTextRenderingDefault(False)
  DevExpress.Data.Utils.RegistryAccessPolicy.SuppressAllOperations()
  Application.Run(New Form1())
End Sub

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

See Also

SuppressReadOperations()

SuppressWriteOperations()

RegistryAccessPolicy Class

RegistryAccessPolicy Members

DevExpress.Data.Utils Namespace