SelectionTask<TBusinessObject> Class

 

Represents a task that depends on the selection of a business object within the Dashboard.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)


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.

NameDescription
System_CAPS_pubpropertyConditionProvider

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.

System_CAPS_pubpropertyDescription

Gets or sets the description of the Task object.(Inherited from Task.)

System_CAPS_pubpropertyDisplayName

Gets the display name of the Task object.(Inherited from Task.)

System_CAPS_pubpropertyIcon

Obsolete. Gets or sets the Icon that is associated with the Task object.(Inherited from Task.)

System_CAPS_pubpropertyID

Gets the identifier of the task.(Inherited from Task.)

System_CAPS_pubpropertyTag

Gets or sets an object that is used to identify the Task.(Inherited from Task.)

System_CAPS_pubpropertyTaskStatus

Gets and sets the status of the current task.(Inherited from Task.)

NameDescription
System_CAPS_pubmethodCreateObjRef(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.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from Task.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventCompleted

Represents an event that is raised when a task either successfully or unsuccessfully completes.(Inherited from Task.)

System_CAPS_pubeventStarted

Represents an event that is raised when the task successfully starts.(Inherited from Task.)

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.

Return to top

Community Additions

ADD
Show: