TaskItem Class
Definition
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for