ChannelDispatcherCollection.InsertItem(Int32, ChannelDispatcherBase) Method

Definition

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)

Parameters

index
Int32

The zero-based index of the channel dispatcher to be retrieved from the collection.

item
ChannelDispatcherBase

The channel dispatcher to be inserted into the collection as an element.

Exceptions

The service host associated with the channel dispatcher collection is closed.

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

Applies to