AsyncUiTask<TBusinessObject> Constructor (Guid, String, AsyncAction<TBusinessObject>)
Initializes a new instance of the AsyncUiTask<TBusinessObject> class with the specified identifier, display name, and the specified delegate method that performs the action of the task.
Namespace: Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly: Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)
Syntax
public AsyncUiTask(
Guid id,
string displayName,
AsyncAction<TBusinessObject> action
)
public:
AsyncUiTask(
Guid id,
String^ displayName,
AsyncAction<TBusinessObject>^ action
)
Public Sub New (
id As Guid,
displayName As String,
action As AsyncAction(Of TBusinessObject)
)
Parameters
id
Type: System.GuidThe unique identifier of the task.
displayName
Type: System.StringThe display name of the task.
action
Type: Microsoft.WindowsServerSolutions.Administration.ObjectModel.AsyncAction<TBusinessObject>An AsyncAction<TBusinessObject> delegate method that is used to perform the task.
Remarks
The delegate method that is provided in the action parameter can receive an object from an Initializer<TBusinessObject> delegate method. An Initializer<TBusinessObject> delegate method is used to perform lengthy initialization processes that need to be completed before the task can be completed. For information about how to set an Initializer<TBusinessObject> delegate method, see Initialization.
See Also
AsyncUiTask<TBusinessObject> Overload
AsyncUiTask<TBusinessObject> Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace
Return to top