DesignerRegionCollection.IsSynchronized Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une valeur indiquant si l’accès à l’objet DesignerRegionCollection est synchronisé (thread safe).
public:
property bool IsSynchronized { bool get(); };
public bool IsSynchronized { get; }
member this.IsSynchronized : bool
Public ReadOnly Property IsSynchronized As Boolean
Valeur de propriété
true, si l’accès au fichier DesignerRegionCollection est synchronisé ; sinon, false.
Remarques
L’énumération par le biais d’une collection n’est pas une procédure thread-safe intrinsèquement. Même lorsqu’une collection est synchronisée, d’autres threads peuvent toujours modifier la collection. Cela provoque des exceptions pendant l’énumération.
Verrouillez la collection à l’aide de la SyncRoot méthode pendant toute l’énumération pour garantir la sécurité des threads.