Export (0) Print
Expand All

SynchronizedCollection.SynchronizedCollection(Object, Generic IEnumerable) Constructor

Initializes a new instance of the SynchronizedCollection class from a specified enumerable list of elements and with the object used to synchronize access to the thread-safe collection.

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

public SynchronizedCollection (
	Object syncRoot,
	IEnumerable<T> list
)
public SynchronizedCollection (
	Object syncRoot, 
	IEnumerable<T> list
)
public function SynchronizedCollection (
	syncRoot : Object, 
	list : IEnumerable<T>
)
Not applicable.

Parameters

syncRoot

The object used to synchronize access to the thread-safe collection.

list

The IEnumerable collection of elements used to initialize the thread-safe collection.

Exception typeCondition

ArgumentNullException

syncRoot or list is a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft