Sdílet prostřednictvím


AbstractUIThreadOperationContext.AddScope(Boolean, String) Method

Definition

Adds an UI thread operation scope with its own cancellability, description and progress tracker. The scope is removed from the context on 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

Parameters

allowCancellation
Boolean
description
String

Returns

Implements

Applies to