Partager via


Classe WmiCollectionBase

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Smo.Wmi
Assembly :  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Syntaxe

'Déclaration
Public MustInherit Class WmiCollectionBase
'Utilisation
Dim instance As WmiCollectionBase
public abstract class WmiCollectionBase
public ref class WmiCollectionBase abstract
[<AbstractClassAttribute>]
type WmiCollectionBase =  class end
public abstract class WmiCollectionBase

Le type WmiCollectionBase expose les membres suivants.

Propriétés

  Nom Description
Propriété publique IsSynchronized Gets the Boolean property value that specifies whether access to the collection is synchronized (thread safe).
Propriété publique SyncRoot Gets an object that can be used to synchronize access to the collection.

Haut de la page

Méthodes

  Nom Description
Méthode protégée Add Adds the specified object to the referenced collection.
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode protégée Remove Removes the specified object from the referenced collection.
Méthode publique ToString (hérité de Object.)

Haut de la page

Champs

  Nom Description
Champ protégé initialized Defines a boolean method that initializes the collection of objects in the Windows Management Instrumentation (WMI) object preference. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server.
Champ protégé innerColl Identifié à titre d'information uniquement. Non pris en charge. La compatibilité future n'est pas garantie.

Haut de la page

Notes

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

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Exemples

Gestion des services et des paramètres réseau à l'aide du fournisseur WMI

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Smo.Wmi

Autres ressources

WMI and SQL Server

Connexion au moteur de base de données SQL Server