Share via


WmiCollectionBase Class

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

Inheritance Hierarchy

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

The WmiCollectionBase type exposes the following members.

Properties

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

Top

Methods

  Name Description
Protected method Add Adds the specified object to the referenced collection.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method Remove Removes the specified object from the referenced collection.
Public method ToString (Inherited from Object.)

Top

Fields

  Name Description
Protected field initialized Defines a boolean method that initializes the collection of objects in the Windows Management Instrumentation (WMI) object preference. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Protected field innerColl Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

Top

Remarks

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

Thread Safety

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

Examples

Managing Services and Network Settings by Using WMI Provider

Thread Safety

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

See Also

Reference

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

WMI and SQL Server

Connecting to the SQL Server Database Engine