ChannelDispatcherCollection.InsertItem(Int32, ChannelDispatcherBase) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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