Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

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.

  NameDescription
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.
Top
  NameDescription
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.
Top
  NameDescription
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.)
Top

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.