Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
ID
Top
Expand Minimize

Priority Property

Visual Studio .NET 2003

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

[Visual Basic .NET]
Public Property Priority() As vsTaskPriority
[Visual Basic 6]
Property Get Priority() As vsTaskPriority
Property Let Priority( _
   ByVal NewValue As vsTaskPriority _
) 
[C++]
HRESULT __stdcall get_Priority(
   /* [out, retval] */ vsTaskPriority* retVal
);
HRESULT __stdcall put_Priority(
   /* [in] */ vsTaskPriority NewValue
);
[C#]
public vsTaskPriority Priority {get; set;}
[JScript .NET]
public function get Priority() : vsTaskPriority
public function set Priority(
   NewValue : vsTaskPriority
)

Parameters

Priority
A vsTaskPriority constant denoting the task item's priority.

Return Value

Returns a vsTaskPriority constant.

Example

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

See Also

Applies To: TaskItem Object

Show:
© 2015 Microsoft