ICollection(T).Add Method

SynchronizedReadOnlyCollection<T>.ICollection<T>.Add Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Throws a NotSupportedException if called.

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

void ICollection<T>.Add(
	T value
)

Parameters

value
Type: T
The element to be added to the collection.

Implements

ICollection<T>.Add(T)

ExceptionCondition
NotSupportedException

Items cannot be added to a read-only collection.

Items cannot be added to a read-only collection.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft