Share via


SPWebPartCollection.SyncRoot property

NOTE: This API is now obsolete.

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public ReadOnly Property SyncRoot As Object
    Get
'Usage
Dim instance As SPWebPartCollection
Dim value As Object

value = instance.SyncRoot
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public Object SyncRoot { get; }

Property value

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

Implements

ICollection.SyncRoot

See also

Reference

SPWebPartCollection class

SPWebPartCollection members

Microsoft.SharePoint namespace