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
public Object SyncRoot { get; }
Property Value
Type: System.Object
An object to use for thread-safe access.
Implements
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.