Back to Devexpress

RegistryAccessPolicy.SuppressWriteOperations() Method

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

latest2.1 KB
Original Source

RegistryAccessPolicy.SuppressWriteOperations() Method

Suppresses requests to write 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 SuppressWriteOperations()
vb
Public Shared Sub SuppressWriteOperations

Remarks

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

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

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

See Also

SuppressReadOperations()

SuppressAllOperations()

RegistryAccessPolicy Class

RegistryAccessPolicy Members

DevExpress.Data.Utils Namespace