TaskCollection Class
Represents a collection of Task objects that are displayed in the task pane of the Dashboard.
Namespace: Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly: Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)
Inheritance Hierarchy
System.Object
Microsoft.WindowsServerSolutions.Administration.ObjectModel.TaskCollection
Syntax
[SerializableAttribute]
public sealed class TaskCollection : ICollection<Task>, IEnumerable<Task>,
IEnumerable
[SerializableAttribute]
public ref class TaskCollection sealed : ICollection<Task^>,
IEnumerable<Task^>, IEnumerable
<SerializableAttribute>
Public NotInheritable Class TaskCollection
Implements ICollection(Of Task), IEnumerable(Of Task), IEnumerable
Constructors
Name | Description | |
---|---|---|
TaskCollection() | Initializes a new instance of the TaskCollection class. |
Properties
Name | Description | |
---|---|---|
Count | Gets the number of Task objects in the TaskCollection. |
|
IsReadOnly | Gets a value that indicates whether the TaskCollection is read-only. |
Methods
Name | Description | |
---|---|---|
Add(Task) | Adds the specified Task object to the TaskCollection. |
|
Clear() | Removes all Task objects from the TaskCollection. |
|
Contains(Task) | Determines whether the specified Task object is in the TaskCollection. |
|
CopyTo(Task[], Int32) | Copies the entire TaskCollection to a compatible one-dimensional array, starting at the specified index of the target array. |
|
Equals(Object) | (Inherited from Object.) |
|
GetEnumerator() | Returns an enumerator that is used to iterate through the TaskCollection. |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
Remove(Task) | Removes the first occurrence of the specified Task object from the TaskCollection. |
|
ToString() | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable.GetEnumerator() | Returns an IEnumerator that can iterate through a collection. |
Remarks
A TaskCollection is passed as an argument to one of the Create methods of PageContent.
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace
Return to top