TaskItem Class

Definition

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

Examples

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

Remarks

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.

Constructors

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.

Properties

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.

Applies to