Partager via


OutputWindowPane.ForceItemsToTaskList, méthode

Envoie tous les éléments de tâche qui n'ont pas encore été ajoutés à la liste des tâches.

Espace de noms :  EnvDTE
Assembly :  EnvDTE (dans EnvDTE.dll)

Syntaxe

'Déclaration
Sub ForceItemsToTaskList
void ForceItemsToTaskList()
void ForceItemsToTaskList()
abstract ForceItemsToTaskList : unit -> unit
function ForceItemsToTaskList()

Exemples

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

Sécurité .NET Framework

Voir aussi

Référence

OutputWindowPane Interface

EnvDTE, espace de noms