TaskItem.Enabled Property

IIS 7.0

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

Namespace:   Microsoft.Web.Management.Client
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

public bool Enabled { get; set; }

Property Value

Type: System.Boolean

true if the object is enabled; otherwise, false.

The following example enumerates the task items and enables all tasks of type MethodTaskItem.

    foreach (TaskItem item in items)
        if (item is MethodTaskItem)
            item.Enabled = true;
    return items;
Return to top