Compartir a través de


EventPropertyCollection.ICollection.SyncRoot Propiedad

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
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 admite el uso de implementaciones de interfaces explícitas, pero no la declaración de otras nuevas.

Valor de la propiedad

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

Implementa

ICollection.SyncRoot

Comentarios

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

Vea también

Referencia

EventPropertyCollection Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo