ChannelDispatcherCollection.InsertItem(Int32, ChannelDispatcherBase) 方法
定义
将通道调度程序插入到集合中的指定索引位置。Inserts a channel dispatcher into the collection at a specified index.
protected:
override void InsertItem(int index, System::ServiceModel::Dispatcher::ChannelDispatcherBase ^ item);
protected override void InsertItem (int index, System.ServiceModel.Dispatcher.ChannelDispatcherBase item);
override this.InsertItem : int * System.ServiceModel.Dispatcher.ChannelDispatcherBase -> unit
Protected Overrides Sub InsertItem (index As Integer, item As ChannelDispatcherBase)
参数
- index
- Int32
要从集合中检索的通道调度程序的从零开始的索引。The zero-based index of the channel dispatcher to be retrieved from the collection.
要作为元素插入到集合中的通道调度程序。The channel dispatcher to be inserted into the collection as an element.
例外
与通道调度程序集合关联的服务主机被关闭。The service host associated with the channel dispatcher collection is closed.
指定的 index 小于零或大于集合中的项数。The index specified is less than zero or greater than the number of items in the collection.
通信对象没有处于任何状态The commutation object is not in a state