TaskItem.Category Property

IIS 7.0
 

Gets the category.

Namespace:   Microsoft.Web.Management.Client
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

public string Category { get; }

Property Value

Type: System.String

The category.

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);

}
Return to top
Show: