IUIThreadOperationExecutor.BeginExecute 方法

定义

重载

BeginExecute(UIThreadOperationExecutionOptions)

开始对调用方线程执行可能长时间运行的操作,并提供上下文对象,以提供对共享可取消性和等待指示的访问。

BeginExecute(String, String, Boolean, Boolean)

开始对调用方线程执行可能长时间运行的操作,并提供上下文对象,以提供对共享可取消性和等待指示的访问。

BeginExecute(UIThreadOperationExecutionOptions)

开始对调用方线程执行可能长时间运行的操作,并提供上下文对象,以提供对共享可取消性和等待指示的访问。

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

参数

executionOptions
UIThreadOperationExecutionOptions

控制执行行为的选项。

返回

IUIThreadOperationContext

IUIThreadOperationContext 为给定操作提供对共享双向可取消性和等待指示的访问的实例。 此实例被释放时,操作被视为已执行 IUIThreadOperationContext

适用于

BeginExecute(String, String, Boolean, Boolean)

开始对调用方线程执行可能长时间运行的操作,并提供上下文对象,以提供对共享可取消性和等待指示的访问。

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

参数

title
String

操作的标题。 可以为 null,以指示等待对话框应使用应用程序的标题。

defaultDescription
String

默认操作的说明,在 "等待" 对话框中显示,除非已将一个或多个 IUIThreadOperationScope 具有更具体说明的添加到中 IUIThreadOperationContext

allowCancellation
Boolean

是否允许可取消性。

showProgress
Boolean

是否显示进度指示。

返回

IUIThreadOperationContext

IUIThreadOperationContext 为给定操作提供对共享双向可取消性和等待指示的访问的实例。 此实例被释放时,操作被视为已执行 IUIThreadOperationContext

适用于