TaskItem.Category Property

Definition

Gets the category.

C#
public string Category { get; }

Property Value

The category.

Examples

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

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

}

Applies to

Toode Versioonid
IIS SDK for .NET latest