ColumnDefinitionCollection.IsSynchronized Propriété

Définition

Obtient une valeur qui indique si l'accès à ColumnDefinitionCollection 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é

Boolean

true si l'accès à cette collection est synchronisé ; sinon, false.

Implémente

Remarques

L'énumération d'une collection n'est intrinsèquement pas une procédure thread-safe. Même lorsqu'une collection est synchronisée, les autres threads peuvent toujours la modifier, ce qui entraîne la levée d'une exception par l'énumérateur. Pour garantir la sécurité des threads pendant l’énumération, vous pouvez verrouiller la collection pendant toute l’énumération ou intercepter les exceptions résultant des modifications apportées par d’autres threads.

S’applique à