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.12.0
Syntax
C#
[XmlRootAttribute("Actions", Namespace = "http://schemas.microsoft.com/windows/2004/02/mit/task", 
	IsNullable = false)]
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 propertyContextGets or sets the identifier of the principal for the task.
Public propertyCountGets the number of actions in the collection.
Public propertyItemInt32Gets or sets a an action at the specified index.
Public propertyItemStringGets 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 propertyXmlTextGets 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 methodAddNewAdds a new Action instance to the task.
Public methodAddRangeAdds a collection of actions to the end of the ActionCollection.
Public methodClearClears all actions from the task.
Public methodContainsDetermines whether the ICollectionT contains a specific value.
Public methodContainsTypeDetermines 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 methodDisposeReleases all resources used by this class.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows 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 methodGetEnumeratorRetrieves an enumeration of each of the actions.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIndexOf(Action)Determines the index of a specific item in the IListT.
Public methodIndexOf(String)Determines the index of a specific item in the IListT.
Public methodInsertInserts an action at the specified index.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemoveRemoves the first occurrence of a specific object from the ICollectionT.
Public methodRemoveAtRemoves the action at a specified index.
Public methodToArrayCopies the elements of the ActionCollection to a new array.
Public methodToStringReturns a String that represents the actions in this collection.
(Overrides ObjectToString)
Top
Events
 NameDescription
Public eventCollectionChangedOccurs when a collection changes.
Public eventPropertyChangedOccurs when a property value changes.
Top
See Also