TaskItem TaskItem TaskItem 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
TaskItemTaskItemTaskItemTaskItem
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) TaskItem(String, String) TaskItem(String, String) TaskItem(String, String)

Initializes a new instance of the TaskItem class.

TaskItem(String, String, String) TaskItem(String, String, String) TaskItem(String, String, String) TaskItem(String, String, String)

Initializes a new instance of the TaskItem class, using the specified description.

Properties

Category Category Category Category

Gets the category.

Description Description Description Description

Gets the description that is set in the TaskList() constructor.

Enabled Enabled Enabled Enabled

Gets or sets a value indicating whether the object is enabled.

Properties Properties Properties Properties

Gets the IDictionary member of the class.

Text Text Text Text

Gets the text that is set in the TaskList() constructor.

Applies to