TaskProgressOptions 類別

定義

保留的不可變選項 IVsTaskProgressHolds immutable options for an IVsTaskProgress.

public ref class TaskProgressOptions
public class TaskProgressOptions
type TaskProgressOptions = class
Public Class TaskProgressOptions
繼承
TaskProgressOptions

建構函式

TaskProgressOptions(String)

初始化 TaskProgressOptions 類別的新執行個體。Initializes a new instance of the TaskProgressOptions class.

TaskProgressOptions(String, Stream, IVsProgressStreamConverter, CompletionActions, Action<Task>, LogDisplayType, Object)

初始化 TaskProgressOptions 類別的新執行個體。Initializes a new instance of the TaskProgressOptions class.

欄位

ProgressStream

顯示工作進度的選擇性資料流程。An optional stream which shows the progress of a task. 此資料流程輸出將會在 UI 中呈現,例如輸出視窗。This stream output will be rendered in a UI like the output window. 如果未 StreamConverter 指定,則會顯示原始資料流程輸出。If no StreamConverter is specified, the raw stream output will be displayed.

StreamConverter

選用的資料流程轉換器,會將轉換 ProgressStream 成顯示在 UI 中的格式。An optional stream converter that would convert a ProgressStream into a format that is displayed in a UI.

屬性

CompletionActions

取得值,這個值表示一組旗標 (s) ,表示 IVsTaskProgress 與這些選項相關聯之工作狀態中心 UI 中的可見度會在完成時使用。Gets a value indicating a set of flag(s) that represent the visibility in the Task Status Center UI that the IVsTaskProgress associated with these options will have upon completion.

Display

將用來顯示輸出的物件。The object that will be used to display the output. 例如, IVsOutputWindowPane 當為時 DisplayTypeOutputWindowFor e.g. IVsOutputWindowPane when the DisplayType is OutputWindow.

DisplayTaskDetails

取得值,這個值會用來叫用提供者 Action<T>Gets a value used to invoke a caller supplied Action<T>. 將與此相關的詳細資料提供 IVsTaskProgress 給使用者。to give more details about the IVsTaskProgress associated with this, to the user. 可能會將使用者導向與工作相關聯的工具視窗,或開啟錯誤記錄檔,例如。Could lead the user to the tool window associated with the task, or open up an error log for example. Task傳遞至動作的會是向 Task 註冊的 IVsTaskProgressThe Task passed to the action will be the Task registered with the IVsTaskProgress.

DisplayType

取得屬性,這個屬性會指出與相關聯之工作的輸出 IVsTaskProgress 會移至何處。Gets a property that indicates where the output of the tasks associated with the IVsTaskProgress would go.

Title

取得值,指出 IVsTaskProgress 與這些選項相關聯的標題。Gets a value indicating the title of the IVsTaskProgress associated with these options.

適用於