EventPropertyCollection.ICollection.SyncRoot Property

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

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

Syntax

'Declaration
Private ReadOnly Property SyncRoot As Object 
    Implements ICollection.SyncRoot 
    Get
'Usage
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 supports the use of explicit interface implementations, but not the declarations of new ones.

Property Value

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

Implements

ICollection.SyncRoot

Remarks

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

See Also

Reference

EventPropertyCollection Class

Microsoft.SqlServer.Management.Smo Namespace