Share via


SPBaseCollection.ICollection.SyncRoot Property

Gets an object that is used to synchronize access to the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Private ReadOnly Property SyncRoot As Object
    Implements ICollection.SyncRoot
    Get
'Usage
Dim instance As SPBaseCollection
Dim value As Object

value = CType(instance, ICollection).SyncRoot
ObjectICollection.SyncRoot { get; }

Property Value

Type: System.Object
An object that is used to synchronize access to the collection.

Implements

ICollection.SyncRoot

See Also

Reference

SPBaseCollection Class

SPBaseCollection Members

Microsoft.SharePoint Namespace