CommunicationObject.OnClosing 方法

定義

在將通訊物件轉換為關閉狀態期間會叫用。Invoked during the transition of a communication object into the closing state.

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

備註

如果通訊物件一開始處於 Close 狀態,OnClosing 方法就會呼叫 OpenedThe Close method calls OnClosing if the communication object is initially in the Opened state.

適用於