MessageTaskItem Class

IIS 7.0
 

Provides a container for task messages.

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

System.Object
  Microsoft.Web.Management.Client.TaskItem
    Microsoft.Web.Management.Client.MessageTaskItem

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public sealed class MessageTaskItem : TaskItem

NameDescription
System_CAPS_pubmethodMessageTaskItem(MessageTaskItemType, String, String)

Initializes a new instance of the MessageTaskItem class with the specified message type, text, and category.

System_CAPS_pubmethodMessageTaskItem(MessageTaskItemType, String, String, String)

Initializes a new instance of the MessageTaskItem class with the specified message type, text, category, and description.

System_CAPS_pubmethodMessageTaskItem(MessageTaskItemType, String, String, String, String, Object)

Initializes a new instance of the MessageTaskItem class with the specified message type, text, category, description, method name, and user data.

NameDescription
System_CAPS_pubpropertyCategory

Gets the category.(Inherited from TaskItem.)

System_CAPS_pubpropertyDescription

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

System_CAPS_pubpropertyEnabled

Gets or sets a value indicating whether the object is enabled.(Inherited from TaskItem.)

System_CAPS_pubpropertyMessageType

Gets the task item type of the message task item.

System_CAPS_pubpropertyMethodName

Gets the method name associated with the message task item.

System_CAPS_pubpropertyProperties

Gets the System.Collections.IDictionary member of the class.(Inherited from TaskItem.)

System_CAPS_pubpropertyText

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

System_CAPS_pubpropertyUserData

Gets the user data associated with the message task item.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

public override System.Collections.ICollection GetTaskItems() {

    ArrayList items = new ArrayList();

    Image imgAsk = rLoadImg.loadImgs(SystemIcons.Asterisk, 16);
    Image imgErr = rLoadImg.loadImgs(SystemIcons.Error, 16);
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);
}
    foreach (TaskItem item in items)
    {
        if (item is MethodTaskItem)
            item.Enabled = true;
    }
    return items;
}

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: