GlobalObjectCollection.SyncRoot, propriété

Obtient l'objet sur lequel pour synchroniser l'accès.

Espace de noms :  Microsoft.VisualStudio.Shell.Design
Assembly :  Microsoft.VisualStudio.Shell.Design (dans Microsoft.VisualStudio.Shell.Design.dll)

Syntaxe

'Déclaration
Public ReadOnly Property SyncRoot As Object
public Object SyncRoot { get; }

Valeur de propriété

Type : System.Object
L'objet sur lequel pour synchroniser l'accès.

Implémentations

ICollection.SyncRoot

Remarques

Si IsSynchronized retourne la valeur false, vous pouvez toujours un accès thread-safe à cette collection en se verrouillant sur l'objet retourné d'SyncRoot.

Sécurité .NET Framework

Voir aussi

Référence

GlobalObjectCollection Classe

Microsoft.VisualStudio.Shell.Design, espace de noms