Freigeben über


WmiCollectionBase-Klasse

The WmiCollectionBase class represents all collection objects in the Windows Management Instrumentation (WMI) object reference.

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Management.Smo.Wmi.WmiCollectionBase
    Microsoft.SqlServer.Management.Smo.Wmi.ClientProtocolCollection
    Microsoft.SqlServer.Management.Smo.Wmi.ServerAliasCollection
    Microsoft.SqlServer.Management.Smo.Wmi.ServerInstanceCollection
    Microsoft.SqlServer.Management.Smo.Wmi.ServerIPAddressCollection
    Microsoft.SqlServer.Management.Smo.Wmi.ServerProtocolCollection
    Microsoft.SqlServer.Management.Smo.Wmi.ServiceCollection

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Public MustInherit Class WmiCollectionBase
'Usage
Dim instance As WmiCollectionBase
public abstract class WmiCollectionBase
public ref class WmiCollectionBase abstract
[<AbstractClassAttribute>]
type WmiCollectionBase =  class end
public abstract class WmiCollectionBase

Der WmiCollectionBase-Typ macht folgende Elemente verfügbar.

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft IsSynchronized Gets the Boolean property value that specifies whether access to the collection is synchronized (thread safe).
Öffentliche Eigenschaft SyncRoot Gets an object that can be used to synchronize access to the collection.

Zum Anfang

Methoden

  Name Beschreibung
Geschützte Methode Add Adds the specified object to the referenced collection.
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Geschützte Methode Remove Removes the specified object from the referenced collection.
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Felder

  Name Beschreibung
Geschütztes Feld initialized Defines a boolean method that initializes the collection of objects in the Windows Management Instrumentation (WMI) object preference. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.
Geschütztes Feld innerColl Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt.

Zum Anfang

Hinweise

The WmiCollectionBase object is used in the construction of all WMI collection objects and contains common functionality.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Beispiele

Verwalten von Diensten und Netzwerkeinstellungen durch die Nutzung von WMI-Anbieter

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo.Wmi-Namespace

Andere Ressourcen

WMI and SQL Server

Herstellen einer Verbindung zum SQL Server-Datenbankmodul