ArraySegment<(Of <(T>)>).ICollection<(Of <(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)

Syntax

Private Sub Clear Implements ICollection(Of T).Clear
void ICollection<T>.Clear()

Implements

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

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