GroupTaskItem Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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, Boolean) |
Initializes a new instance of the GroupTaskItem class. |
GroupTaskItem(String, String, String) |
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 |
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) |