SelectionTask<TBusinessObject> Class
Represents a task that depends on the selection of a business object within the Dashboard.
Assembly: Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)
System::MarshalByRefObject
Microsoft.WindowsServerSolutions.Administration.ObjectModel::Task
Microsoft.WindowsServerSolutions.Administration.ObjectModel::SelectionTask<TBusinessObject>
Microsoft.WindowsServerSolutions.Administration.ObjectModel::AsyncUiTask<TBusinessObject>
Microsoft.WindowsServerSolutions.Administration.ObjectModel::ProcessTask<TBusinessObject>
Microsoft.WindowsServerSolutions.Administration.ObjectModel::SyncUiTask<TBusinessObject>
Microsoft.WindowsServerSolutions.Administration.ObjectModel::UrlTask<TBusinessObject>
generic<typename TBusinessObject> where TBusinessObject : ref class public ref class SelectionTask abstract : Task
Type Parameters
- TBusinessObject
Represents a business object that encapsulates information and methods that relate to business data or business functionality. The information in the business object is exposed as properties.
| Name | Description | |
|---|---|---|
![]() | ConditionProvider | Gets or sets a Converter<TInput, TOutput> delegate method that is used to convert an instance of a business object to the TaskCondition<TBusinessObject> for the task. |
![]() | Description | |
![]() | DisplayName | |
![]() | Icon | |
![]() | ID | Gets the identifier of the task.(Inherited from Task.) |
![]() | Tag | |
![]() | TaskStatus | Gets and sets the status of the current task.(Inherited from Task.) |
| Name | Description | |
|---|---|---|
![]() | CreateObjRef(Type^) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from Task.) |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetLifetimeService() | (Inherited from MarshalByRefObject.) |
![]() | GetType() | (Inherited from Object.) |
![]() | InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from Task.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject.) |
![]() | ToString() | (Inherited from Object.) |
Cannot be instantiated or derived from directly; use derivatives of SelectionTask<TBusinessObject>.
A TaskCondition object is used with a SelectionTask<TBusinessObject> to define how the task pertains to the selected business object.
A business object encapsulates information and methods, which relate to business data or business functionality. The information in a business object is usually exposed as properties.
The following code example shows how to define a SelectionTask<TBusinessObject> and define a TaskCondition<TBusinessObject> object for the task using a delegate method:
SelectionTask<BusinessObject> task = null;
task = new ProcessTask<BusinessObject>("Selection Task", "notepad.exe");
task.ConditionProvider = ShouldShowTask;
private static TaskCondition ShouldShowTask(BusinessObject businessObj)
{
return businessObj.OSVersion == "Windows Vista" ?
TaskCondition.Default : TaskCondition.NotApplicable;
}
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



