CommunicationObject.OnClosed 方法

定义

在通信对象转换到正在关闭状态的过程中被调用。

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

注解

如果通信对象最初处于 Close 状态,则 OnClosed 方法将调用 Opened

如果通信对象尚未处于 EndClose 状态,则 OnClosed 方法将调用 OnEndClose(IAsyncResult)Closed

适用于