共用方式為


WmiCollectionBase.SyncRoot 屬性

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

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

語法

'宣告
Public ReadOnly Property SyncRoot As Object 
    Get
'用途
Dim instance As WmiCollectionBase 
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 value that can be used to synchronize access to the collection.

範例

使用 WMI 提供者管理服務和網路設定

請參閱

參考

WmiCollectionBase 類別

Microsoft.SqlServer.Management.Smo.Wmi 命名空間

其他資源

WMI and SQL Server

連接到 SQL Server Database Engine