共用方式為


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 表示非同步中斷連線。

適用於