Clear Method

LinkedList(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 nodes from the LinkedList(Of T).

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

'Declaration
Public Sub Clear

Implements

ICollection(Of T).Clear

Count is set to zero, and references to other objects from elements of the collection are also released. First and Last are set to Nothing.

This method is an O(n) operation, where n is Count.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft