Collection(T) Constructor (IList(T))
Collapse the table of content
Expand the table of content

Collection(Of T) Constructor (IList(Of T))

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

Initializes a new instance of the Collection(Of T) class as a wrapper for the specified list.

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

'Declaration
Public Sub New ( _
	list As IList(Of T) _
)

Parameters

list
Type: System.Collections.Generic.IList(Of T)
The list that is wrapped by the new collection.

ExceptionCondition
ArgumentNullException

list is Nothing.

The elements of the list are not copied. The list is wrapped by the collection, so that subsequent changes to the elements of the list are visible through the Collection(Of T).

This constructor is an O(1) operation.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft