CommunicationObject.ThrowIfDisposed 方法

定义

如果通信对象已释放,则引发异常。

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

例外

通信对象处于 ClosingClosed 状态。

通信对象处于 Faulted 状态。

注解

如果通信对象处于 CreatedOpeningOpened 状态,则不引发异常。 如果对某通信对象调用 Close,则立即释放该通信对象。

适用于