共用方式為


SPBaseCollection.ICollection.SyncRoot property

取得用於同步化存取集合的物件。

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

Syntax

'宣告
Private ReadOnly Property SyncRoot As Object
    Implements ICollection.SyncRoot
    Get
'用途
Dim instance As SPBaseCollection
Dim value As Object

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

Property value

Type: System.Object
用來同步存取集合物件。

Implements

ICollection.SyncRoot

請參閱

參照

SPBaseCollection class

SPBaseCollection members

Microsoft.SharePoint namespace