Click or drag to resize
Task Scheduler Managed Class Library

TriggerCollection Class

Provides the methods that are used to add to, remove from, and get the triggers of a task.
Inheritance Hierarchy
SystemObject
  Microsoft.Win32.TaskSchedulerTriggerCollection

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public sealed class TriggerCollection : IEnumerable, 
	IDisposable, IXmlSerializable, IList, ICollection, INotifyCollectionChanged, 
	INotifyPropertyChanged
Request Example View Source

The TriggerCollection type exposes the following members.

Properties
Methods
  NameDescription
Public methodAddTTrigger
Add an unbound Trigger to the task.
Public methodAddNew
Add a new trigger to the collections of triggers for the task.
Public methodAddRange
Adds a collection of unbound triggers to the end of the TriggerCollection.
Public methodClear
Clears all triggers from the task.
Public methodContains
Public methodContainsType
Determines whether the specified trigger type is contained in this collection.
Public methodCopyTo(Trigger, Int32)
Public methodCopyTo(Int32, Trigger, Int32, Int32)
Copies the elements of the TriggerCollection to a Trigger array, starting at a particular Trigger array index.
Public methodDispose
Releases all resources used by this class.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFind
Searches for an Trigger that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire collection.
Public methodFindIndexOf(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.
Public methodFindIndexOf(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.
Public methodGetEnumerator
Gets the collection enumerator for this collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf(String)
Public methodIndexOf(Trigger)
Public methodInsert
Inserts an trigger at the specified index.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Public methodRemoveAt
Removes the trigger at a specified index.
Public methodToArray
Copies the elements of the TriggerCollection to a new array.
Public methodToString
Returns a String that represents the triggers in this collection.
(Overrides ObjectToString.)
Top
Events
  NameDescription
Public eventCollectionChanged
Occurs when a collection changes.
Public eventPropertyChanged
Occurs when a property value changes.
Top
See Also