共用方式為


IUIThreadOperationContext.AddScope(Boolean, String) Method

Definition

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

Parameters

allowCancellation
Boolean
description
String

Returns

Applies to