Back to Devexpress

ProcessStartPolicy.RequireConfirmation() Method

corelibraries-devexpress-dot-data-dot-utils-dot-processstartpolicy-337956ef.md

latest2.4 KB
Original Source

ProcessStartPolicy.RequireConfirmation() Method

Applies a policy that displays a confirmation dialog that prompts a user to confirm or cancel a process.

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 RequireConfirmation()
vb
Public Shared Sub RequireConfirmation

Remarks

The RequireConfirmation 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.

csharp
DevExpress.Data.Utils.ProcessStartPolicy.RegisterTrustedProcess("https://www.devexpress.com");
vb
DevExpress.Data.Utils.ProcessStartPolicy.RegisterTrustedProcess("https://www.devexpress.com")

Refer to the following topic for additional information: Suppress New Processes Initiated by .NET Controls.

Tip

Handle the ConfirmationRequest event to programmatically analyze the requested process and explicitly allow or block its execution without displaying the confirmation dialog.

See Also

SuppressAll()

ThrowAlways()

ConfirmationRequest

ProcessStartPolicy Class

ProcessStartPolicy Members

DevExpress.Data.Utils Namespace