JoinableTaskCollection Class
A joinable collection of jobs.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Threading.JoinableTaskCollection
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Class JoinableTaskCollection _
Implements IEnumerable(Of JoinableTask), IEnumerable
public class JoinableTaskCollection : IEnumerable<JoinableTask>,
IEnumerable
public ref class JoinableTaskCollection : IEnumerable<JoinableTask^>,
IEnumerable
type JoinableTaskCollection =
class
interface IEnumerable<JoinableTask>
interface IEnumerable
end
public class JoinableTaskCollection implements IEnumerable<JoinableTask>, IEnumerable
The JoinableTaskCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
JoinableTaskCollection | Initializes a new instance of JoinableTaskCollection with the specified task context. |
Top
Properties
Name | Description | |
---|---|---|
Context | Gets the JoinableTaskContext to which this collection belongs. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds the specified job to this collection. | |
Contains | Determines whether the specified job is a member of this collection. | |
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.) | |
GetEnumerator | Enumerates the tasks in this collection. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Join | Shares any access to the main thread that may be held by the caller with all joinable tasks in this collection until the returned value is disposed. | |
JoinTillEmptyAsync | Joins the caller's context to this collection till the collection is empty. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove | Removes the specified job from this collection, or decrements the ref count if this collection tracks it. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable.GetEnumerator | Gets the enumerator. |
Top
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.