KeyedByTypeCollection<TItem>.SetItem Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Replaces the item at the specified index with a new object.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- index
- Type: System.Int32
The zero-based index of the item to be replaced.
- item
- Type: TItem
The object to add to the collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | item is null. |
Show: