Export (0) Print
Expand All
ID
Top
Expand Minimize

SubCategory Property

Visual Studio .NET 2003

Returns a string representing the task item's subcategory.

[Visual Basic .NET]
Public ReadOnly Property SubCategory() As String
[Visual Basic 6]
Property Get SubCategory() As String
[C++]
HRESULT __stdcall get_SubCategory(
   /* [out, retval] */ BSTR* retVal
);
[C#]
public string SubCategory {get;}
[JScript .NET]
public function get SubCategory() : String

Example

Sub SubCategoryExample()
   ' 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:
© 2014 Microsoft