GroupTaskItem Class

Definition

Provides a container class for group tasks.

public ref class GroupTaskItem sealed : Microsoft::Web::Management::Client::TaskItem
public sealed class GroupTaskItem : Microsoft.Web.Management.Client.TaskItem
type GroupTaskItem = class
    inherit TaskItem
Public NotInheritable Class GroupTaskItem
Inherits TaskItem
Inheritance
GroupTaskItem

Examples

The following example returns a most recently used (MRU) list based on the connection path type.

/// <summary>
/// This method is called to query the list of Task Items that should be displayed in the TaskPanel
/// </summary>
public override ICollection GetTaskItems() {
    List<TaskItem> items = new List<TaskItem>();

    // Get the current connection
    Connection connection = (Connection)_serviceProvider.GetService(typeof(Connection));

    // Keep a different set of tasks depending on the type (Server, Site, Application, etc)
    MRUList<MRUPageInfo> features = _features[(int)connection.ConfigurationPath.PathType];

    if (features.Count > 0) {
        GroupTaskItem group = new GroupTaskItem("MyExpanded", "Recent Tasks", "Task");
        AddFavorites(group.Items, features);

        items.Add(group);
    }

    return items;
} 

Remarks

The collection of task items will be displayed as a collapsible node in the Actions pane.

Constructors

GroupTaskItem(String, String, String)

Initializes a new instance of the GroupTaskItem class.

GroupTaskItem(String, String, String, Boolean)

Initializes a new instance of the GroupTaskItem class.

Properties

Category

Gets the category.

(Inherited from TaskItem)
Description

Gets the description that is set in the TaskList() constructor.

(Inherited from TaskItem)
Enabled

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

(Inherited from TaskItem)
IsHeading

Gets the value of the Boolean isHeading parameter that is passed to the constructor.

Items

Gets the list of task items.

MemberName

Gets the member name.

Properties

Gets the IDictionary member of the class.

(Inherited from TaskItem)
Text

Gets the text that is set in the TaskList() constructor.

(Inherited from TaskItem)

Applies to