다음을 통해 공유


IUIThreadOperationExecutor.BeginExecute Method

Definition

Overloads

BeginExecute(UIThreadOperationExecutionOptions)

Begins executing potentially long running operation on the caller thread and provides a context object that provides access to shared cancellability and wait indication.

BeginExecute(String, String, Boolean, Boolean)

Begins executing potentially long running operation on the caller thread and provides a context object that provides access to shared cancellability and wait indication.

BeginExecute(UIThreadOperationExecutionOptions)

Begins executing potentially long running operation on the caller thread and provides a context object that provides access to shared cancellability and wait indication.

public:
 Microsoft::VisualStudio::Utilities::IUIThreadOperationContext ^ BeginExecute(Microsoft::VisualStudio::Utilities::UIThreadOperationExecutionOptions ^ executionOptions);
public Microsoft.VisualStudio.Utilities.IUIThreadOperationContext BeginExecute (Microsoft.VisualStudio.Utilities.UIThreadOperationExecutionOptions executionOptions);
abstract member BeginExecute : Microsoft.VisualStudio.Utilities.UIThreadOperationExecutionOptions -> Microsoft.VisualStudio.Utilities.IUIThreadOperationContext
Public Function BeginExecute (executionOptions As UIThreadOperationExecutionOptions) As IUIThreadOperationContext

Parameters

executionOptions
UIThreadOperationExecutionOptions

Options that control execution behavior.

Returns

IUIThreadOperationContext instance that provides access to shared two way cancellability and wait indication for the given operation. The operation is considered executed when this IUIThreadOperationContext instance is disposed.

Applies to

BeginExecute(String, String, Boolean, Boolean)

Begins executing potentially long running operation on the caller thread and provides a context object that provides access to shared cancellability and wait indication.

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

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.

Returns

IUIThreadOperationContext instance that provides access to shared two way cancellability and wait indication for the given operation. The operation is considered executed when this IUIThreadOperationContext instance is disposed.

Applies to