Condividi tramite


TaskList.TaskItems Property

Definition

Gets a collection of all tasks currently in the Task List window in the indicated categories.

public:
 property EnvDTE::TaskItems ^ TaskItems { EnvDTE::TaskItems ^ get(); };
[System.Runtime.InteropServices.DispId(5)]
public EnvDTE.TaskItems TaskItems { [System.Runtime.InteropServices.DispId(5)] get; }
[<System.Runtime.InteropServices.DispId(5)>]
[<get: System.Runtime.InteropServices.DispId(5)>]
member this.TaskItems : EnvDTE.TaskItems
Public ReadOnly Property TaskItems As TaskItems

Property Value

A TaskItems collection.

Attributes

Examples

Sub TaskItemsExample()  
   ' Before running, add a task to the Task List.  
   Dim win As Window = DTE.Windows.Item(Constants.vsWindowKindTaskList)  
   Dim TL As TaskList = win.Object  
   Dim TLItem As TaskItem = TL.TaskItems.Item(1)  
   Dim msg As String  

   ' List properties of the Task Item.  
   msg = "TaskItem Category property value: " & TLItem.Category & vbCr  
   msg = msg & "TaskItem SubCategory property value: " & TLItem.SubCategory & vbCr  
   msg = msg & "TaskItem Checked property value: " & TLItem.Checked & vbCr  
   msg = msg & "TaskItem Displayed property value: " & TLItem.Displayed & vbCr  
   msg = msg & "TaskItem IsSettable property value: " & TLItem.IsSettable(vsTaskListColumn.vsTaskListColumnCheck) & vbCr  
   msg = msg & "TaskItem Priority property value: " & TLItem.Priority & vbCr  
   MsgBox(msg)  
End Sub  

Applies to