TriggerCollection Class

Provides the methods that are used to add to, remove from, and get the triggers of a task.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[XmlRootAttribute("Triggers", Namespace = "http://schemas.microsoft.com/windows/2004/02/mit/task", 
	IsNullable = false)]
public sealed class TriggerCollection : IEnumerable, 
	IDisposable, IXmlSerializable, IList, ICollection, INotifyCollectionChanged, 
	INotifyPropertyChanged
Inheritance
Object    TriggerCollection
Implements
ICollection, IEnumerable, IList, INotifyCollectionChanged, INotifyPropertyChanged, IDisposable, IXmlSerializable

Properties

CountGets the number of triggers in the collection.
ItemInt32Gets a specified trigger from the collection.
ItemStringGets or sets a specified trigger from the collection.

Methods

AddTTriggerAdd an unbound Trigger to the task.
AddNewAdd a new trigger to the collections of triggers for the task.
AddRangeAdds a collection of unbound triggers to the end of the TriggerCollection.
ClearClears all triggers from the task.
ContainsDetermines whether the ICollectionT contains a specific value.
ContainsTypeDetermines whether the specified trigger type is contained in this collection.
CopyTo(Trigger, Int32) Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
CopyTo(Int32, Trigger, Int32, Int32) Copies the elements of the TriggerCollection to a Trigger array, starting at a particular Trigger array index.
DisposeReleases all resources used by this class.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Find Searches for an Trigger that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire collection.
FindIndexOf(PredicateTrigger) Searches for an Trigger that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the collection.
FindIndexOf(Int32, Int32, PredicateTrigger) Searches for an Trigger that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the collection that starts at the specified index and contains the specified number of elements.
GetEnumeratorGets the collection enumerator for this collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOf(String)Determines the index of a specific item in the IListT.
IndexOf(Trigger)Determines the index of a specific item in the IListT.
InsertInserts an trigger at the specified index.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RemoveRemoves the first occurrence of a specific object from the ICollectionT.
RemoveAtRemoves the trigger at a specified index.
ToArrayCopies the elements of the TriggerCollection to a new array.
ToStringReturns a String that represents the triggers in this collection.
(Overrides ObjectToString)

Events

CollectionChangedOccurs when a collection changes.
PropertyChangedOccurs when a property value changes.

See Also