Export (0) Print
Expand All

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;
}


Community Additions

ADD
Show:
© 2015 Microsoft