Condividi tramite


WmiCollectionBase.SyncRoot Property

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

Spazio dei nomi: Microsoft.SqlServer.Management.Smo.Wmi
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property SyncRoot As Object
public Object SyncRoot { get; }
public:
virtual property Object^ SyncRoot {
    Object^ get () sealed;
}
/** @property */
public final Object get_SyncRoot ()
public final function get SyncRoot () : Object

Valore proprietà

An Object value that can be used to synchronize access to the collection.

Osservazioni

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.

Esempio

How to: Stop and Restart the Microsoft SQL Server Service to the Instance of SQL Server in Visual Basic .NET

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

WmiCollectionBase Class
WmiCollectionBase Members
Microsoft.SqlServer.Management.Smo.Wmi Namespace

Altre risorse

Managing Services and Network Settings by Using WMI Provider
WMI and SQL Server
Connessione a Motore di database di SQL Server