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
Public method JoinableTaskCollection Initializes a new instance of JoinableTaskCollection with the specified task context.

Top

Properties

  Name Description
Public property Context Gets the JoinableTaskContext to which this collection belongs.

Top

Methods

  Name Description
Public method Add Adds the specified job to this collection.
Public method Contains Determines whether the specified job is a member of this collection.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Enumerates the tasks in this collection.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method 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. 
Public method JoinTillEmptyAsync Joins the caller's context to this collection till the collection is empty.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the specified job from this collection, or decrements the ref count if this collection tracks it.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method 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.

See Also

Reference

Microsoft.VisualStudio.Threading Namespace