ChannelFactoryBase<TChannel>.ValidateCreateChannel 方法

定义

确认通道工厂是打开的,并且已准备就绪,可以创建通道了。Confirms that the channel factory is opened and ready to create channels.

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

例外

通信对象处于 ClosingClosed 状态。The communication object is in a Closing or Closed state.

通信对象处于 Faulted 状态。The communication object is in a Faulted state.

当前通道工厂不处于 Opened 状态。The current channel factory is not in the Opened state.

注解

方法引发所列的异常之一,并按照表中的顺序检查相应条件。The method throws one of the exceptions listed and checks for the conditions in the order they are listed in the table.

适用于