SynchronizedReadOnlyCollection<T>::IList::Add Method (Object^)
.NET Framework (current version)
Adds an element to the collection.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- value
-
Type:
System::Object^
The element to be added to the collection.
Return Value
Type: System::Int32Returns Int32. The position into which the new element was inserted.
Implements
IList::Add(Object^)| 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
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: