MessageTaskItem Constructors
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.
Initializes a new instance of the MessageTaskItem class.
Overloads
MessageTaskItem(MessageTaskItemType, String, String) |
Initializes a new instance of the MessageTaskItem class with the specified message type, text, and category. |
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, 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)
Initializes a new instance of the MessageTaskItem class with the specified message type, text, and category.
public:
MessageTaskItem(Microsoft::Web::Management::Client::MessageTaskItemType messageType, System::String ^ text, System::String ^ category);
public MessageTaskItem (Microsoft.Web.Management.Client.MessageTaskItemType messageType, string text, string category);
new Microsoft.Web.Management.Client.MessageTaskItem : Microsoft.Web.Management.Client.MessageTaskItemType * string * string -> Microsoft.Web.Management.Client.MessageTaskItem
Public Sub New (messageType As MessageTaskItemType, text As String, category As String)
Parameters
- messageType
- MessageTaskItemType
One of the MessageTaskItemType values.
- text
- String
The text to display for the MessageTaskItem.
- category
- String
The category of the MessageTaskItem.
Examples
The following example creates two MessageTaskItem instances and adds them to a collection of items.
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);
}
Remarks
The category
string can be null
.
Applies to
MessageTaskItem(MessageTaskItemType, String, String, String)
Initializes a new instance of the MessageTaskItem class with the specified message type, text, category, and description.
public:
MessageTaskItem(Microsoft::Web::Management::Client::MessageTaskItemType messageType, System::String ^ text, System::String ^ category, System::String ^ description);
public MessageTaskItem (Microsoft.Web.Management.Client.MessageTaskItemType messageType, string text, string category, string description);
new Microsoft.Web.Management.Client.MessageTaskItem : Microsoft.Web.Management.Client.MessageTaskItemType * string * string * string -> Microsoft.Web.Management.Client.MessageTaskItem
Public Sub New (messageType As MessageTaskItemType, text As String, category As String, description As String)
Parameters
- messageType
- MessageTaskItemType
One of the MessageTaskItemType values.
- text
- String
The text to display for the MessageTaskItem.
- category
- String
The category of the MessageTaskItem.
- description
- String
The description of the MessageTaskItem.
Applies to
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.
public:
MessageTaskItem(Microsoft::Web::Management::Client::MessageTaskItemType messageType, System::String ^ text, System::String ^ category, System::String ^ description, System::String ^ methodName, System::Object ^ userData);
public MessageTaskItem (Microsoft.Web.Management.Client.MessageTaskItemType messageType, string text, string category, string description, string methodName, object userData);
new Microsoft.Web.Management.Client.MessageTaskItem : Microsoft.Web.Management.Client.MessageTaskItemType * string * string * string * string * obj -> Microsoft.Web.Management.Client.MessageTaskItem
Public Sub New (messageType As MessageTaskItemType, text As String, category As String, description As String, methodName As String, userData As Object)
Parameters
- messageType
- MessageTaskItemType
One of the MessageTaskItemType values.
- text
- String
The text to display for the MessageTaskItem.
- category
- String
The category of the MessageTaskItem.
- description
- String
The description of the MessageTaskItem.
- methodName
- String
The name of the method to invoke.
- userData
- Object
Arbitrary user data associated with the MessageTaskItem.