Back to Devexpress

RegistryAccessPolicy.SuppressReadOperations() Method

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

latest2.1 KB
Original Source

RegistryAccessPolicy.SuppressReadOperations() Method

Suppresses read operations from 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 SuppressReadOperations()
vb
Public Shared Sub SuppressReadOperations

Remarks

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

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

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

See Also

SuppressWriteOperations()

SuppressAllOperations()

RegistryAccessPolicy Class

RegistryAccessPolicy Members

DevExpress.Data.Utils Namespace