ICollection.SyncRoot Property

SynchronizedReadOnlyCollection(Of T).ICollection.SyncRoot Property

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

Gets an object that can be used to synchronize access to the collection.

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

'Declaration
Private ReadOnly Property SyncRoot As Object
	Implements ICollection.SyncRoot

Property Value

Type: System.Object
An object that can be used to synchronize access to the collection.

Implements

ICollection.SyncRoot

Gets the object used to synchronize access to the thread-safe, read-only collection. The value of this syncRoot object can be set when creating the thread-safe collection using the #ctor(Object) constructor.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft