IList.Add Method

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)

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

Parameters

value
Type: System.Object
The element to be added to the collection.

Return Value

Type: System.Int32
The NotSupportedException.

Implements

IList.Add(Object)

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