DataViewSettingCollection.SyncRoot Propriedade

Definição

Obtém um objeto que pode ser usado para sincronizar o acesso ao DataViewSettingCollection.Gets an object that can be used to synchronize access to the DataViewSettingCollection.

public:
 property System::Object ^ SyncRoot { System::Object ^ get(); };
[System.ComponentModel.Browsable(false)]
public object SyncRoot { get; }
[<System.ComponentModel.Browsable(false)>]
member this.SyncRoot : obj
Public ReadOnly Property SyncRoot As Object

Valor da propriedade

Object

Um objeto que pode ser usado para sincronizar o acesso à DataViewSettingCollection.An object that can be used to synchronize access to the DataViewSettingCollection.

Implementações

Atributos

Comentários

Classes derivadas podem fornecer uma versão sincronizada do DataViewSettingCollection usando a SyncRoot propriedade.Derived classes can provide a synchronized version of the DataViewSettingCollection using the SyncRoot property.

O código do programa sempre deve executar operações sincronizadas no SyncRoot do DataViewSettingCollection , não diretamente no DataViewSettingCollection .Program code must always perform synchronized operations on the SyncRoot of the DataViewSettingCollection, not directly on the DataViewSettingCollection. Isso garante a operação correta de coleções que são derivadas de outros objetos.This guarantees the correct operation of collections that are derived from other objects. Especificamente, ele mantém a sincronização correta com outros threads que podem estar modificando simultaneamente o DataViewSettingCollection .Specifically, it maintains the correct synchronization with other threads that might be simultaneously modifying the DataViewSettingCollection.

Aplica-se a