ICollection(T).Clear Method

ArraySegment<T>.ICollection<T>.Clear Method

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

Removes all items from the array segment.

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

void ICollection<T>.Clear()

Implements

ICollection<T>.Clear()

ExceptionCondition
NotSupportedException

The array segment is read-only.

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

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft