共用方式為


SyncRoot 屬性

Gets an object that can be used to synchronize access to the collection.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public ReadOnly Property SyncRoot As Object
    Get
'用途
Dim instance As SmoCollectionBase
Dim value As Object

value = instance.SyncRoot
public Object SyncRoot { get; }
public:
virtual property Object^ SyncRoot {
    Object^ get () sealed;
}
abstract SyncRoot : Object
override SyncRoot : Object
final function get SyncRoot () : Object

屬性值

型別:System. . :: . .Object
An Object system object value that can be used to synchronize access to the collection.

實作

ICollection. . :: . .SyncRoot

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。

範例

使用集合