SynchronizedReadOnlyCollection(T) Constructor
Collapse the table of content
Expand the table of content

SynchronizedReadOnlyCollection(Of T) Constructor

[ 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 SynchronizedReadOnlyCollection(Of T) class from a specified enumerable list of elements and with the object used to synchronize access to the thread-safe, read-only collection.

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

'Declaration
Public Sub New ( _
	syncRoot As Object, _
	list As IEnumerable(Of T) _
)

Parameters

syncRoot
Type: System.Object
The object used to synchronize access to the thread-safe, read-only collection.
list
Type: System.Collections.Generic.IEnumerable(Of T)
The IEnumerable(Of T) collection of elements used to initialize the thread-safe, read-only collection.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft