Export (0) Print
Expand All

ObservableCollection(Of T) Constructor (IEnumerable(Of T))

Initializes a new instance of the ObservableCollection(Of T) class and populates it with items copied from the specified collection.

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

'Declaration
Public Sub New ( _
	collection As IEnumerable(Of T) _
)

Parameters

collection
Type: System.Collections.Generic.IEnumerable(Of T)
The collection from which the items are copied.

ExceptionCondition
ArgumentNullException

collection is Nothing.

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft