ActionCollection Class

Collection that contains the actions that are performed by the task.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
[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
Inheritance
Object    ActionCollection
Implements
ICollection, IEnumerable, IList, INotifyCollectionChanged, INotifyPropertyChanged, IDisposable, IXmlSerializable

Properties

ContextGets or sets the identifier of the principal for the task.
CountGets the number of actions in the collection.
ItemInt32Gets or sets a an action at the specified index.
ItemStringGets or sets a specified action from the collection.
PowerShellConversion Gets or sets the systems under which unsupported actions will be converted to PowerShell ExecAction instances.
XmlTextGets or sets an XML-formatted version of the collection.

Methods

Add(String, String, String)Adds an ExecAction to the task.
AddTAction(TAction)Adds an action to the task.
AddNewAdds a new Action instance to the task.
AddRangeAdds a collection of actions to the end of the ActionCollection.
ClearClears all actions from the task.
ContainsDetermines whether the ICollectionT contains a specific value.
ContainsTypeDetermines whether the specified action type is contained in this collection.
CopyTo(Action, Int32) Copies the elements of the ActionCollection to an array of Action, starting at a particular index.
CopyTo(Int32, Action, Int32, Int32) Copies the elements of the ActionCollection to an Action array, starting at a particular Action 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 Action that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire collection.
FindIndexOf(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.
FindIndexOf(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.
GetEnumeratorRetrieves an enumeration of each of the actions.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOf(Action)Determines the index of a specific item in the IListT.
IndexOf(String)Determines the index of a specific item in the IListT.
InsertInserts an action 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 action at a specified index.
ToArrayCopies the elements of the ActionCollection to a new array.
ToStringReturns a String that represents the actions in this collection.
(Overrides ObjectToString)

Events

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

See Also