SetItem Method
Collapse the table of content
Expand the table of content

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.

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

protected override void SetItem(
	int index,
	TItem item
)

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.

ExceptionCondition
ArgumentNullException

item is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft