Share via


GlobalObjectCollection.SyncRoot Property

Gets the object on which to synchronize access.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public ReadOnly Property SyncRoot As Object
'Usage
Dim instance As GlobalObjectCollection 
Dim value As Object 

value = instance.SyncRoot
public Object SyncRoot { get; }
public:
virtual property Object^ SyncRoot {
    Object^ get () sealed;
}
public final function get SyncRoot () : Object

Property Value

Type: System.Object
The object on which to synchronize access.

Implements

ICollection.SyncRoot

Remarks

If IsSynchronized returns false, you may still gain thread-safe access to this collection by locking on the object returned from SyncRoot.

.NET Framework Security

See Also

Reference

GlobalObjectCollection Class

GlobalObjectCollection Members

Microsoft.VisualStudio.Shell.Design Namespace