Compartir a través de


TaskItem.Priority Property

Definition

Sets or gets a constant that indicates the priority of the task item.

public:
 property EnvDTE::vsTaskPriority Priority { EnvDTE::vsTaskPriority get(); void set(EnvDTE::vsTaskPriority value); };
public:
 property EnvDTE::vsTaskPriority Priority { EnvDTE::vsTaskPriority get(); void set(EnvDTE::vsTaskPriority value); };
[System.Runtime.InteropServices.DispId(5)]
public EnvDTE.vsTaskPriority Priority { [System.Runtime.InteropServices.DispId(5)] get; [System.Runtime.InteropServices.DispId(5)] set; }
[<System.Runtime.InteropServices.DispId(5)>]
[<get: System.Runtime.InteropServices.DispId(5)>]
[<set: System.Runtime.InteropServices.DispId(5)>]
member this.Priority : EnvDTE.vsTaskPriority with get, set
Public Property Priority As vsTaskPriority

Property Value

A vsTaskPriority constant.

Attributes

Examples

[Visual Basic]

Sub PriorityExample()  
   ' 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