IUIThreadOperationContext.AddScope(Boolean, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用其自己的双向可取消性、说明和进度跟踪器来添加 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