Back to Devexpress

ProcessStartPolicy.RegisterTrustedProcess(String) Method

corelibraries-devexpress-dot-data-dot-utils-dot-processstartpolicy-dot-registertrustedprocess-x28-system-dot-string-x29.md

latest2.1 KB
Original Source

ProcessStartPolicy.RegisterTrustedProcess(String) Method

Registers a trusted resource.

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 RegisterTrustedProcess(
    string fileName
)
vb
Public Shared Sub RegisterTrustedProcess(
    fileName As String
)

Parameters

NameTypeDescription
fileNameString

The trusted resource.

|

Remarks

The ThrowAlways and RequireConfirmation policies allow 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")

Read the following topic for more information: Suppress New Processes Initiated by .NET Controls.

See Also

ProcessStartPolicy Class

ProcessStartPolicy Members

DevExpress.Data.Utils Namespace