TaskItem Class
Collapse the table of content
Expand the table of content

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)

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public abstract class TaskItem

The TaskItem type exposes the following members.

Protected methodTaskItem(String, String)Initializes a new instance of the TaskItem class.
Protected methodTaskItem(String, String, String)Initializes a new instance of the TaskItem class, using the specified description.

Public propertyCategoryGets the category.
Public propertyDescriptionGets the description that is set in the TaskList constructor.
Public propertyEnabledGets or sets a value indicating whether the object is enabled.
Public propertyPropertiesGets the System.Collections..::..IDictionary member of the class.
Public propertyTextGets the text that is set in the TaskList constructor.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

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;

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2016 Microsoft