CommunicationObject.ThrowIfDisposed CommunicationObject.ThrowIfDisposed CommunicationObject.ThrowIfDisposed CommunicationObject.ThrowIfDisposed Method

Définition

Renvoie une exception si l'objet de communication est supprimé.Throws an exception if the communication object is disposed.

protected:
 void ThrowIfDisposed();
protected void ThrowIfDisposed ();
member this.ThrowIfDisposed : unit -> unit
Protected Sub ThrowIfDisposed ()

Exceptions

L'objet de communication est dans l'état Closing ou Closed.The communication object is in a Closing or Closed state.

Remarques

Aucune exception n'est renvoyée si l'objet de communication est dans l'état Created, Opening ou Opened.No exception is thrown if the communication object is in a Created, Opening or Opened state. Un objet de communication est supprimé lorsque Close est appelé dessus.A communication object is disposed once Close is called on it.

S’applique à