Partilhar via


JoinableTaskCollection.Join Method

Definition

Shares access to the main thread that the caller's JoinableTask may have (if any) with all JoinableTask instances in this collection until the returned value is disposed.

public:
 Microsoft::VisualStudio::Threading::JoinableTaskCollection::JoinRelease Join();
public Microsoft.VisualStudio.Threading.JoinableTaskCollection.JoinRelease Join ();
member this.Join : unit -> Microsoft.VisualStudio.Threading.JoinableTaskCollection.JoinRelease
Public Function Join () As JoinableTaskCollection.JoinRelease

Returns

A value to dispose of to revert the join.

Remarks

Calling this method when the caller is not executing within a JoinableTask safely no-ops.

Applies to