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.
Assembly: Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)
'Declaration Public MustInherit Class Trigger _ Implements ICloneable
'Usage Dim instance As Trigger
public abstract class Trigger : ICloneable
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.
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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.