OutputWindowPane.ForceItemsToTaskList 方法
傳送所有未加入至工作清單的工作項目。
命名空間: EnvDTE
組件: EnvDTE (在 EnvDTE.dll 中)
語法
'宣告
Sub ForceItemsToTaskList
void ForceItemsToTaskList()
void ForceItemsToTaskList()
abstract ForceItemsToTaskList : unit -> unit
function ForceItemsToTaskList()
範例
Sub ForceItemsToTaskListExample()
' Create a tool window handle for the Output window.
Dim win As Window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput)
' Create handles to the Output window and its panes.
Dim OW As OutputWindow = win.Object
Dim OWp As OutputWindowPane
' Add a new pane to the Output window.
OWp = OW.OutputWindowPanes.Add("A New Pane")
' Add a line of text to the new pane and to the Task List.
OWp.OutputTaskItemString("Some task", vsTaskPriority.vsTaskPriorityHigh, vsTaskCategories.vsTaskCategoryMisc, vsTaskIcon.vsTaskIconComment, "C:\temp", 100, "Some description")
' You can also use the 'True' flag on the end of OutputTaskItemString
' rather than using the next line (ForceItemsToTaskList).
OWp.ForceItemsToTaskList()
End Sub
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。