ICollection.SyncRoot Property
Collapse the table of content
Expand the table of content

SortedSet(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 ICollection.

Namespace:  System.Collections.Generic
Assembly:  System (in System.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 ICollection. In the default implementation of Dictionary(Of TKey, TValue).KeyCollection, this property always returns the current instance.

Implements

ICollection.SyncRoot

This member is an explicit interface member implementation. It can be used only when the SortedSet(Of T) instance is cast to an ICollection interface.

This method is an O(1) operation.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft