SynchronizedReadOnlyCollection<(Of <(T>)>).IList.Add Method

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

Throws a NotSupportedException.

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

Syntax

Private Function Add ( _
    value As Object _
) As Integer Implements IList.Add
int IList.Add(
    Object value
)

Parameters

Return Value

Type: System..::.Int32
The NotSupportedException.

Implements

IList..::.Add(Object)

Exceptions

Exception Condition
NotSupportedException

Items cannot be added to a read-only collection.

Remarks

Items cannot be added to a read-only collection.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

SynchronizedReadOnlyCollection<(Of <(T>)>) Class

System.Collections.Generic Namespace