CommunicationObject.OnClosing 方法

定義

在將通訊物件轉換為關閉狀態期間會叫用。

protected:
 virtual void OnClosing();
protected virtual void OnClosing ();
abstract member OnClosing : unit -> unit
override this.OnClosing : unit -> unit
Protected Overridable Sub OnClosing ()

備註

如果通訊物件一開始處於 Close 狀態,OnClosing 方法就會呼叫 Opened

適用於