ChannelDispatcherCollection.SetItem Method (Int32, ChannelDispatcherBase)

 

Replaces the channel dispatcher at a specified index with another item.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected override void SetItem(
	int index,
	ChannelDispatcherBase item
)

Parameters

index
Type: System.Int32

The zero-based index of the channel dispatcher to be replaced.

item
Type: System.ServiceModel.Dispatcher.ChannelDispatcherBase

The channel dispatcher to replace

Exception Condition
ObjectDisposedException

The service associated with this collection of channel dispatchers is in a Closed state.

ArgumentOutOfRangeException

The index specified is less than zero or greater than the number of items in the collection.

.NET Framework
Available since 3.0
Return to top
Show: