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

定義

通信オブジェクトが破棄された場合に、例外をスローします。Throws an exception if the communication object is disposed.

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

例外

通信オブジェクトは、Closing または Closed 状態にあります。The communication object is in a Closing or Closed state.

注釈

通信オブジェクトが CreatedOpening、または Opened の状態である場合は、例外はスローされません。No exception is thrown if the communication object is in a Created, Opening or Opened state. 通信オブジェクトは、Close が呼び出されると、破棄されます。A communication object is disposed once Close is called on it.

適用対象