Action |
[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
The ActionCollection type exposes the following members.
| Name | Description | |
|---|---|---|
| Context | Gets or sets the identifier of the principal for the task. | |
| Count | Gets the number of actions in the collection. | |
| ItemInt32 | Gets or sets a an action at the specified index. | |
| ItemString | Gets 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. | |
| XmlText | Gets or sets an XML-formatted version of the collection. |
| Name | Description | |
|---|---|---|
| Add(String, String, String) | Adds an ExecAction to the task. | |
| AddTAction(TAction) | Adds an action to the task. | |
| AddNew | Adds a new Action instance to the task. | |
| AddRange | Adds a collection of actions to the end of the ActionCollection. | |
| Clear | Clears all actions from the task. | |
| Contains | Determines whether the ICollectionT contains a specific value. | |
| ContainsType | Determines 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. | |
| Dispose | Releases all resources used by this class. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows 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. | |
| GetEnumerator | Retrieves an enumeration of each of the actions. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets 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. | |
| Insert | Inserts an action at the specified index. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Remove | Removes the first occurrence of a specific object from the ICollectionT. | |
| RemoveAt | Removes the action at a specified index. | |
| ToArray | Copies the elements of the ActionCollection to a new array. | |
| ToString | Returns a String that represents the actions in this collection. (Overrides ObjectToString) |
| Name | Description | |
|---|---|---|
| CollectionChanged | Occurs when a collection changes. | |
| PropertyChanged | Occurs when a property value changes. |