共用方式為


IBackgroundWorkIndicatorService 介面

定義

建立輕量型 IBackgroundWorkIndicator的 Factory,其位於編輯器中,與 Threaded-Wait-Dialog 不同。 功能可以使用此功能來向使用者指出工作是在背景發生,但不會阻止用戶繼續使用其程序代碼。

public interface IBackgroundWorkIndicatorService
type IBackgroundWorkIndicatorService = interface
Public Interface IBackgroundWorkIndicatorService

備註

這是MEF元件,應該匯入如下:

[Import]
IBackgroundWorkIndicatorService backgroundWorkIndicatorService = null;

方法

Create(ITextView, SnapshotSpan, String, BackgroundWorkIndicatorOptions)

在要求的位置建立新的背景工作指標,以通知使用者背景工作正在發生。 使用者按下 『escape』 機碼一律可以取消工作。

適用於