AbstractUIThreadOperationContext.AddScope(Boolean, String) 方法

定义

使用其自己的可取消性、说明和进度跟踪器添加 UI 线程操作范围。 从 dispose 上的上下文中删除作用域。

public:
 virtual Microsoft::VisualStudio::Utilities::IUIThreadOperationScope ^ AddScope(bool allowCancellation, System::String ^ description);
public virtual Microsoft.VisualStudio.Utilities.IUIThreadOperationScope AddScope (bool allowCancellation, string description);
abstract member AddScope : bool * string -> Microsoft.VisualStudio.Utilities.IUIThreadOperationScope
override this.AddScope : bool * string -> Microsoft.VisualStudio.Utilities.IUIThreadOperationScope
Public Overridable Function AddScope (allowCancellation As Boolean, description As String) As IUIThreadOperationScope

参数

allowCancellation
Boolean
description
String

返回

IUIThreadOperationScope

实现

适用于