JoinableTaskFactory.MainThreadAwaitable.NoThrowAwaitable 方法

定义

返回指定 SwitchToMainThreadAsync(CancellationToken) 操作的可等待值,该操作在请求取消时不会引发异常。

public Microsoft.VisualStudio.Threading.JoinableTaskFactory.MainThreadAwaitable NoThrowAwaitable ();
member this.NoThrowAwaitable : unit -> Microsoft.VisualStudio.Threading.JoinableTaskFactory.MainThreadAwaitable
Public Function NoThrowAwaitable () As JoinableTaskFactory.MainThreadAwaitable

返回

可等待。

适用于