SelectionTask Generic Class
Represents a task that depends on the selection of a business object within the Administration Console.
Namespace: Microsoft.EssentialBusinessServer.Console.ObjectModel
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)
The following code example shows how to define a SelectionTask and define a TaskCondition 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;
}
Can not be instantiated or derived from directly; use derivatives of SelectionTask.
A TaskCondition object is used with a SelectionTask 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.
System.Object
System.MarshalByRefObject
Microsoft.EssentialBusinessServer.Console.ObjectModel.Task
Microsoft.EssentialBusinessServer.Console.ObjectModel.SelectionTask
Microsoft.EssentialBusinessServer.Console.ObjectModel.AsyncUiTask
Microsoft.EssentialBusinessServer.Console.ObjectModel.ProcessTask
Microsoft.EssentialBusinessServer.Console.ObjectModel.SyncUiTask
Microsoft.EssentialBusinessServer.Console.ObjectModel.UrlTask
System.MarshalByRefObject
Microsoft.EssentialBusinessServer.Console.ObjectModel.Task
Microsoft.EssentialBusinessServer.Console.ObjectModel.SelectionTask
Microsoft.EssentialBusinessServer.Console.ObjectModel.AsyncUiTask
Microsoft.EssentialBusinessServer.Console.ObjectModel.ProcessTask
Microsoft.EssentialBusinessServer.Console.ObjectModel.SyncUiTask
Microsoft.EssentialBusinessServer.Console.ObjectModel.UrlTask
Community Additions
Show: