Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Joins any main thread affinity of the caller with the asynchronous operation. This is to avoid deadlocks in case the main thread ultimately synchronously blocks while it is waiting for the operation to complete.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Function JoinAsync ( _
cancellationToken As CancellationToken _
) As Task
public Task JoinAsync(
CancellationToken cancellationToken
)
public:
Task^ JoinAsync(
CancellationToken cancellationToken
)
member JoinAsync :
cancellationToken:CancellationToken -> Task
public function JoinAsync(
cancellationToken : CancellationToken
) : Task
Parameters
cancellationToken
Type: System.Threading.CancellationTokenA cancellation token that will exit this method before the task is completed.
Return Value
Type: System.Threading.Tasks.Task
A Task that completes after the asynchronous operation completes and the join is reverted..
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.