SynchronizedCollection(Of T).ICollection.SyncRoot Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

Private ReadOnly Property SyncRoot As Object Implements ICollection.SyncRoot

Property Value

Type: System.Object

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

The value of this syncRoot object can be set when creating the thread-safe collection using the SynchronizedCollection(Of T)(Object) constructor.

.NET Framework
Available since 3.0
Return to top
Show: