SynchronizedCollection<T>.SetItem Method (Int32, T)

 

Replaces the item at a specified index with another item.

Namespace:   System.Collections.Generic
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected virtual void SetItem(
	int index,
	T item
)

Parameters

index
Type: System.Int32

The zero-based index of the object to be replaced.

item
Type: T

The object to replace

Exception Condition
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: