TaskItem Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a base class container for tasks.
public ref class TaskItem abstract
public abstract class TaskItem
type TaskItem = class
Public MustInherit Class TaskItem
- Inheritance
-
TaskItem
- Derived
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;
}
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.
Task |
Initializes a new instance of the TaskItem class, using the specified description. |
Task |
Initializes a new instance of the TaskItem class. |
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 IDictionary member of the class. |
Text |
Gets the text that is set in the TaskList() constructor. |