Freigeben über


UIThreadOperationExecutionOptions Constructor

Definition

Creates a new instance of the UIThreadOperationExecutionOptions.

public UIThreadOperationExecutionOptions (string title, string defaultDescription, bool allowCancellation, bool showProgress, Microsoft.VisualStudio.Utilities.IUIThreadOperationTimeoutController timeoutController = default);
new Microsoft.VisualStudio.Utilities.UIThreadOperationExecutionOptions : string * string * bool * bool * Microsoft.VisualStudio.Utilities.IUIThreadOperationTimeoutController -> Microsoft.VisualStudio.Utilities.UIThreadOperationExecutionOptions
Public Sub New (title As String, defaultDescription As String, allowCancellation As Boolean, showProgress As Boolean, Optional timeoutController As IUIThreadOperationTimeoutController = Nothing)

Parameters

title
String

Operation's title. Can be null to indicate that the wait dialog should use the application's title.

defaultDescription
String

Default operation's description, which is displayed on the wait dialog unless one or more IUIThreadOperationScopes with more specific descriptions were added to the IUIThreadOperationContext.

allowCancellation
Boolean

Whether to allow cancellability.

showProgress
Boolean

Whether to show progress indication.

timeoutController
IUIThreadOperationTimeoutController

A controller that enables and controls auto-cancellation of an operation execution on a timeout.

Applies to