ArraySegment<(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 array segment.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

Private Function Remove ( _
    item As T _
) As Boolean Implements ICollection(Of T).Remove
bool ICollection<T>.Remove(
    T item
)

Parameters

  • item
    Type: T
    The object to remove from the array segment.

Return Value

Type: System..::.Boolean
true if item was successfully removed from the array segment; otherwise, false. This method also returns false if item is not found in the original array segment.

Implements

ICollection<(Of <(T>)>)..::.Remove(T)

Exceptions

Exception Condition
NotSupportedException

The array segment is read-only.

Remarks

This member is an explicit interface member implementation. It can be used only when the ArraySegment<(Of <(T>)>) instance is cast to an ICollection<(Of <(T>)>) interface.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

ArraySegment<(Of <(T>)>) Structure

System Namespace