Share via


GlobalTypeCollection.SyncRoot Property

Returns an object to use for thread-safe access.

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

Syntax

‘선언
Public ReadOnly Property SyncRoot As Object
    Get
‘사용 방법
Dim instance As GlobalTypeCollection
Dim value As Object

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

Property Value

Type: System.Object
An object to use for thread-safe 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

GlobalTypeCollection Class

GlobalTypeCollection Members

Microsoft.VisualStudio.Shell.Design Namespace