CommunicationObject.OnClosed CommunicationObject.OnClosed CommunicationObject.OnClosed CommunicationObject.OnClosed Method

Définition

Appelé pendant la transition d'un objet de communication à l'état de fermeture.Invoked during the transition of a communication object into the closing state.

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

Remarques

La méthode Close appelle OnClosed si l'objet de communication est initialement dans l'état Opened.The Close method calls OnClosed if the communication object is initially in the Opened state.

La méthode EndClose appelle OnClosed (et OnEndClose(IAsyncResult) si l'objet de communication n'est pas déjà dans l'état Closed.The EndClose method calls OnClosed (and OnEndClose(IAsyncResult) if the communication object is not already in a Closed state.

S’applique à