CommunicationObject.ThrowIfDisposedOrImmutable Method

Definition

Throws an exception if the communication object the State property is not set to the Created state.

protected internal void ThrowIfDisposedOrImmutable ();

Exceptions

The communication object is in a Opening or Opened state.

The communication object is in a Closing or Closed state.

The communication object is in a Faulted state.

Remarks

Since an object is immutable after Open is called on it, the only state that is both mutable and not disposed is the Created state.

Applies to

Produkt Verze
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1