Compartilhar via


Propriedade do RDL EventPropertyCollection.ICollection.SyncRoot

Returns an object that can be used to synchronize access to the ICollection.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Private ReadOnly Property SyncRoot As Object 
    Implements ICollection.SyncRoot 
    Get
'Uso
Dim instance As EventPropertyCollection 
Dim value As Object 

value = CType(instance, ICollection).SyncRoot
Object ICollection.SyncRoot { get; }
private:
virtual property Object^ SyncRoot {
    Object^ get () sealed = ICollection::SyncRoot::get;
}
private abstract SyncRoot : Object 
private override SyncRoot : Object
JScript dá suporte ao uso de implementações de interfaces explícitas, mas não a declarações de implementações novas.

Valor da propriedade

Tipo: System.Object
Object that can be used to synchronize or lock access to the ICollection.

Implementa

ICollection.SyncRoot

Comentários

Synchronization is effective only if all threads lock this object before accessing the collection.

Consulte também

Referência

EventPropertyCollection Classe

Namespace Microsoft.SqlServer.Management.Smo