ICollection(T).Remove Method

SynchronizedReadOnlyCollection(Of T).ICollection(Of T).Remove Method

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

Removes the first occurrence of a specific object from the ICollection(Of T).

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

'Declaration
Private Function Remove ( _
	value As T _
) As Boolean Implements ICollection(Of T).Remove

Parameters

value
Type: T
The value to be removed from the collection.

Return Value

Type: System.Boolean
The method returns false to indicate that the item was not removed from the read-only collection.

Implements

ICollection(Of T).Remove(T)

ExceptionCondition
NotSupportedException

Items cannot be removed from a read-only collection.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft