TaskItem Class
IIS 7.0
Defines a base class container for tasks.
Namespace:
Microsoft.Web.Management.Client
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
The TaskItem type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | TaskItem(String, String) | Initializes a new instance of the TaskItem class. |
![]() | TaskItem(String, String, String) | Initializes a new instance of the TaskItem class, using the specified description. |
| Name | Description | |
|---|---|---|
![]() | Category | Gets the category. |
![]() | Description | Gets the description that is set in the TaskList constructor. |
![]() | Enabled | Gets or sets a value indicating whether the object is enabled. |
![]() | Properties | Gets the System.Collections..::..IDictionary member of the class. |
![]() | Text | Gets the text that is set in the TaskList constructor. |
Tasks are saved in a TaskList object.
TaskItem is the base class for the Microsoft.Web.Management.Client..::..GroupTaskItem, Microsoft.Web.Management.Client.Win32..::..TextTaskItem, Microsoft.Web.Management.Client.Win32..::..MethodTaskItem, and Microsoft.Web.Management.Client..::..MessageTaskItem classes.
The following example enumerates the task items and enables all task items of type MethodTaskItem.
foreach (TaskItem item in items)
{
if (item is MethodTaskItem)
item.Enabled = true;
}
return items;
}
