ChannelDispatcherCollection.SetItem(Int32, ChannelDispatcherBase) Método

Definição

Substitui o dispatcher do canal em um índice especificado por outro item.Replaces the channel dispatcher at a specified index with another item.

protected:
 override void SetItem(int index, System::ServiceModel::Dispatcher::ChannelDispatcherBase ^ item);
protected override void SetItem (int index, System.ServiceModel.Dispatcher.ChannelDispatcherBase item);
override this.SetItem : int * System.ServiceModel.Dispatcher.ChannelDispatcherBase -> unit
Protected Overrides Sub SetItem (index As Integer, item As ChannelDispatcherBase)

Parâmetros

index
Int32

O índice baseado em zero do dispatcher do canal a ser substituído.The zero-based index of the channel dispatcher to be replaced.

item
ChannelDispatcherBase

O dispatcher do canal a substituirThe channel dispatcher to replace

Exceções

O serviço associado a esta coleção de dispatchers do canal está em um estado Closed.The service associated with this collection of channel dispatchers is in a Closed state.

O index especificado é menor que zero ou maior que o número de itens na coleção.The index specified is less than zero or greater than the number of items in the collection.

Aplica-se a