Partager via


IUIThreadOperationExecutor.Execute Method

Definition

Overloads

Execute(UIThreadOperationExecutionOptions, Action<IUIThreadOperationContext>)

Executes the action synchronously and waits for it to complete.

Execute(String, String, Boolean, Boolean, Action<IUIThreadOperationContext>)

Executes the action synchronously and waits for it to complete.

Execute(UIThreadOperationExecutionOptions, Action<IUIThreadOperationContext>)

Executes the action synchronously and waits for it to complete.

public:
 Microsoft::VisualStudio::Utilities::UIThreadOperationStatus Execute(Microsoft::VisualStudio::Utilities::UIThreadOperationExecutionOptions ^ executionOptions, Action<Microsoft::VisualStudio::Utilities::IUIThreadOperationContext ^> ^ action);
public Microsoft.VisualStudio.Utilities.UIThreadOperationStatus Execute (Microsoft.VisualStudio.Utilities.UIThreadOperationExecutionOptions executionOptions, Action<Microsoft.VisualStudio.Utilities.IUIThreadOperationContext> action);
abstract member Execute : Microsoft.VisualStudio.Utilities.UIThreadOperationExecutionOptions * Action<Microsoft.VisualStudio.Utilities.IUIThreadOperationContext> -> Microsoft.VisualStudio.Utilities.UIThreadOperationStatus
Public Function Execute (executionOptions As UIThreadOperationExecutionOptions, action As Action(Of IUIThreadOperationContext)) As UIThreadOperationStatus

Parameters

executionOptions
UIThreadOperationExecutionOptions

Options that control action execution behavior.

action
Action<IUIThreadOperationContext>

An action to execute.

Returns

A status of action execution.

Applies to

Execute(String, String, Boolean, Boolean, Action<IUIThreadOperationContext>)

Executes the action synchronously and waits for it to complete.

public:
 Microsoft::VisualStudio::Utilities::UIThreadOperationStatus Execute(System::String ^ title, System::String ^ defaultDescription, bool allowCancellation, bool showProgress, Action<Microsoft::VisualStudio::Utilities::IUIThreadOperationContext ^> ^ action);
public Microsoft.VisualStudio.Utilities.UIThreadOperationStatus Execute (string title, string defaultDescription, bool allowCancellation, bool showProgress, Action<Microsoft.VisualStudio.Utilities.IUIThreadOperationContext> action);
abstract member Execute : string * string * bool * bool * Action<Microsoft.VisualStudio.Utilities.IUIThreadOperationContext> -> Microsoft.VisualStudio.Utilities.UIThreadOperationStatus
Public Function Execute (title As String, defaultDescription As String, allowCancellation As Boolean, showProgress As Boolean, action As Action(Of IUIThreadOperationContext)) As UIThreadOperationStatus

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.

action
Action<IUIThreadOperationContext>

An action to execute.

Returns

A status of action execution.

Applies to