RegistryAccessPolicy.ThrowOnErrors() Method
Throws an exception if a read/write request to the system registry fails.
Namespace: DevExpress.Data.Utils
Assembly: DevExpress.Data.Desktop.v24.2.dll
Declaration
Remarks
Call the ThrowOnErrors
method at application startup to apply a restrictive policy:
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
DevExpress.Data.Utils.RegistryAccessPolicy.ThrowOnErrors();
Application.Run(new Form1());
}
Read the following topic for additional information: Registry Access Policy.
See Also