Click or drag to resize
Task Scheduler Managed Class Library

ActionCollection Class

Collection that contains the actions that are performed by the task.
Inheritance Hierarchy
SystemObject
  Microsoft.Win32.TaskSchedulerActionCollection

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

The ActionCollection type exposes the following members.

Properties
  NameDescription
Public propertyContext
Gets or sets the identifier of the principal for the task.
Public propertyCount
Gets the number of actions in the collection.
Public propertyItemInt32
Gets or sets a an action at the specified index.
Public propertyItemString
Gets or sets a specified action from the collection.
Public propertyPowerShellConversion
Gets or sets the systems under which unsupported actions will be converted to PowerShell ExecAction instances.
Public propertyXmlText
Gets or sets an XML-formatted version of the collection.
Top
Methods
  NameDescription
Public methodAdd(String, String, String)
Adds an ExecAction to the task.
Public methodAddTAction(TAction)
Adds an action to the task.
Public methodAddNew
Adds a new Action instance to the task.
Public methodAddRange
Adds a collection of actions to the end of the ActionCollection.
Public methodClear
Clears all actions from the task.
Public methodContains
Public methodContainsType
Determines whether the specified action type is contained in this collection.
Public methodCopyTo(Action, Int32)
Copies the elements of the ActionCollection to an array of Action, starting at a particular index.
Public methodCopyTo(Int32, Action, Int32, Int32)
Copies the elements of the ActionCollection to an Action array, starting at a particular Action 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 Action that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire collection.
Public methodFindIndexOf(PredicateAction)
Searches for an Action 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, PredicateAction)
Searches for an Action 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
Retrieves an enumeration of each of the actions.
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(Action)
Public methodIndexOf(String)
Public methodInsert
Inserts an action at the specified index.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Public methodRemoveAt
Removes the action at a specified index.
Public methodToArray
Copies the elements of the ActionCollection to a new array.
Public methodToString
Returns a String that represents the actions 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