ProcessStartPolicy.ThrowAlways() Method
In This Article
Applies a policy that throws an exception when a process is about to start.
Namespace: DevExpress.Data.Utils
Assembly: DevExpress.Data.Desktop.v24.2.dll
NuGet Packages: DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design
#Declaration
#Remarks
The ThrowAlways
policy allows you to set up trusted documents, commands, or URLs. Processes for trusted resources bypass exceptions or confirmation dialogs.
Use the static RegisterTrustedProcess method to register a trusted resource.
DevExpress.Data.Utils.ProcessStartPolicy.RegisterTrustedProcess("https://www.devexpress.com");
Read the following topic for more information: Suppress New Processes Initiated by .NET Controls.
See Also