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

 

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.

Exception Condition
NotSupportedException

Items cannot be set in a read-only collection.

Items cannot be added to a read-only collection.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: