IUIThreadOperationContext.AddScope(Boolean, String) 方法

定义

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

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

参数

allowCancellation
Boolean
description
String

返回

IUIThreadOperationScope

适用于