TaskItem.Category Property

Definition

Gets the category.

public:
 property System::String ^ Category { System::String ^ get(); };
public string Category { get; }
member this.Category : string
Public ReadOnly Property Category As String

Property Value

The category.

Examples

The following example searches the list of task items for all tasks in the Performance category.

foreach (TaskItem item in items) {
    if ((item is MethodTaskItem) && item.Category == sPerformance)
        Trace.WriteLine(item.Description + " Category: " + item.Category);

}

Applies to