CommunicationObject.ThrowIfDisposed Method ()

 

Throws an exception if the communication object is disposed.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

member ThrowIfDisposed : unit -> unit

Exception Condition
ObjectDisposedException

The communication object is in a Closing or Closed state.

CommunicationObjectFaultedException

The communication object is in a Faulted state.

No exception is thrown if the communication object is in a Created, Opening or Opened state. A communication object is disposed once Close is called on it.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: