TaskItem Constructors

Definition

Initializes a new instance of the TaskItem class.

Overloads

TaskItem(String, String)

Initializes a new instance of the TaskItem class.

TaskItem(String, String, String)

Initializes a new instance of the TaskItem class, using the specified description.

TaskItem(String, String)

Initializes a new instance of the TaskItem class.

protected:
 TaskItem(System::String ^ text, System::String ^ category);
protected TaskItem (string text, string category);
new Microsoft.Web.Management.Client.TaskItem : string * string -> Microsoft.Web.Management.Client.TaskItem
Protected Sub New (text As String, category As String)

Parameters

text
String

An arbitrary string.

category
String

The category name.

Examples

The following example creates Microsoft.Web.Management.Client.Win32.MethodTaskItem and Microsoft.Web.Management.Client.MessageTaskItem objects and adds them to the item array.

ArrayList items = new ArrayList();
items.Add(new MessageTaskItem(
                MessageTaskItemType.Information,
                "Vdirs cannot be deleted from this site",
                "Informational",
                "Vdir info description")
           );


if (_owner.IsExtendable)
{
    MessageTaskItem taskItem = new MessageTaskItem(
        MessageTaskItemType.Warning,
        "Vdirs cannot be added to this site",
        "Warning",
        "Vdir description");
    items.Add(taskItem);
}
items.Add(new MethodTaskItem(
                   "Select_tst",
                   "Select + Test",
                   sDemoCat)
                   );
public override System.Collections.ICollection GetTaskItems() {

    ArrayList items = new ArrayList();

    Image imgAsk = rLoadImg.loadImgs(SystemIcons.Asterisk, 16);
    Image imgErr = rLoadImg.loadImgs(SystemIcons.Error, 16);

Applies to

TaskItem(String, String, String)

Initializes a new instance of the TaskItem class, using the specified description.

protected:
 TaskItem(System::String ^ text, System::String ^ category, System::String ^ description);
protected TaskItem (string text, string category, string description);
new Microsoft.Web.Management.Client.TaskItem : string * string * string -> Microsoft.Web.Management.Client.TaskItem
Protected Sub New (text As String, category As String, description As String)

Parameters

text
String

An arbitrary string.

category
String

The category name.

description
String

A descriptive string.

Examples

The following example creates Microsoft.Web.Management.Client.Win32.MethodTaskItem and Microsoft.Web.Management.Client.MessageTaskItem objects and adds them to the item array.

ArrayList items = new ArrayList();
items.Add(new MessageTaskItem(
                MessageTaskItemType.Information,
                "Vdirs cannot be deleted from this site",
                "Informational",
                "Vdir info description")
           );


if (_owner.IsExtendable)
{
    MessageTaskItem taskItem = new MessageTaskItem(
        MessageTaskItemType.Warning,
        "Vdirs cannot be added to this site",
        "Warning",
        "Vdir description");
    items.Add(taskItem);
}
items.Add(new MethodTaskItem(
                   "Select_tst",
                   "Select + Test",
                   sDemoCat)
                   );
public override System.Collections.ICollection GetTaskItems() {

    ArrayList items = new ArrayList();

    Image imgAsk = rLoadImg.loadImgs(SystemIcons.Asterisk, 16);
    Image imgErr = rLoadImg.loadImgs(SystemIcons.Error, 16);

Applies to