Trigger Class

Creates a concrete trigger for a specific start condition and then calls the Add(Trigger) method to include the trigger in the trigger list for a task.

Inheritance Hierarchy

System.Object
  Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler.Trigger
    Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler.OnIdleTrigger
    Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler.OnLogonTrigger
    Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler.OnSystemStartTrigger
    Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler.StartableTrigger

Namespace:  Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler
Assembly:  Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)

Syntax

'Declaration
Public MustInherit Class Trigger _
    Implements ICloneable
'Usage
Dim instance As Trigger
public abstract class Trigger : ICloneable

Remarks

A trigger that is not yet in a trigger list for a task is said to be unbound and holds no resources, that is, holds no COM interfaces. After it is added to a TriggerList object, it is bound and holds a COM interface that is released only when the trigger is removed from the list or the corresponding task is closed.

Note

For more information about triggers, see Task Triggers.

A trigger that is already bound cannot be added to a TriggerList object. To copy a trigger from one list to another, use the Clone method to create an unbound copy, and then add the copy to the new list.

To move a trigger from one list to another, use the Remove(Trigger) method to extract the trigger from the one list before adding it to the other.

A trigger is a generalization of all the concrete trigger classes, and any actual trigger object is one of those types. When included in the TriggerList object of a task, a trigger determines when a scheduled task runs.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Trigger Members

Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler Namespace