ProcessTask Constructor (Guid, String, ProcessTaskStartInfo)
Initializes a new instance of the ProcessTask class with the specified identifier, display name, and the specified ProcessTaskStartInfo object.
Namespace: Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly: Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)
Syntax
public ProcessTask(
Guid id,
string displayName,
ProcessTaskStartInfo startInfo
)
public:
ProcessTask(
Guid id,
String^ displayName,
ProcessTaskStartInfo^ startInfo
)
Public Sub New (
id As Guid,
displayName As String,
startInfo As ProcessTaskStartInfo
)
Parameters
id
Type: System.GuidThe unique identifier of the task.
displayName
Type: System.StringThe display name of the task.
startInfo
Type: Microsoft.WindowsServerSolutions.Administration.ObjectModel.ProcessTaskStartInfoA ProcessTaskStartInfo object that contains information about how to start the process.
Exceptions
Exception | Condition |
---|---|
ArgumentException | One or more of the parameters are not valid. |
ArgumentNullException | One or more of the parameters are null. |
Remarks
After a task has been initialized, it must be added to a TaskCollection to be included in the task pane of the Dashboard.
See Also
ProcessTask Overload
ProcessTask Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace
Return to top