Hub.OnDisconnectedAsync(Exception) 方法

定义

终止与中心的连接时调用。

public:
 virtual System::Threading::Tasks::Task ^ OnDisconnectedAsync(Exception ^ exception);
public virtual System.Threading.Tasks.Task OnDisconnectedAsync (Exception exception);
public virtual System.Threading.Tasks.Task OnDisconnectedAsync (Exception? exception);
abstract member OnDisconnectedAsync : Exception -> System.Threading.Tasks.Task
override this.OnDisconnectedAsync : Exception -> System.Threading.Tasks.Task
Public Overridable Function OnDisconnectedAsync (exception As Exception) As Task

参数

exception
Exception

返回

表示 Task 异步断开连接的 。

适用于