CommunicationObject.ThrowIfDisposedOrImmutable CommunicationObject.ThrowIfDisposedOrImmutable CommunicationObject.ThrowIfDisposedOrImmutable CommunicationObject.ThrowIfDisposedOrImmutable Method

Definition

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

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

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