MessageTaskItem 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 for task messages.
public ref class MessageTaskItem sealed : Microsoft::Web::Management::Client::TaskItem
public sealed class MessageTaskItem : Microsoft.Web.Management.Client.TaskItem
type MessageTaskItem = class
inherit TaskItem
Public NotInheritable Class MessageTaskItem
Inherits TaskItem
- Inheritance
Examples
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;
}
Constructors
MessageTaskItem(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. |
MessageTaskItem(MessageTaskItemType, String, String, String) |
Initializes a new instance of the MessageTaskItem class with the specified message type, text, category, and description. |
MessageTaskItem(MessageTaskItemType, String, String) |
Initializes a new instance of the MessageTaskItem class with the specified message type, text, and category. |
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) |
MessageType |
Gets the task item type of the message task item. |
MethodName |
Gets the method name associated with the message task item. |
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) |
UserData |
Gets the user data associated with the message task item. |