Retrieves a collection of management objects based on a specified query. This class is one of the more commonly used entry points to retrieving management information. For example, it can be used to enumerate all disk drives, network adapters, processes and many more management objects on a system, or to query for all network connections that are up, services that are paused, and so on. When instantiated, an instance of this class takes as input a WMI query represented in an ObjectQuery or its derivatives, and optionally a ManagementScope representing the WMI namespace to execute the query in. It can also take additional advanced options in an EnumerationOptions. When the Get()()() method on this object is invoked, the ManagementObjectSearcher executes the given query in the specified scope and returns a collection of management objects that match the query in a ManagementObjectCollection.
The ManagementObjectSearcher type exposes the following members.
Top
Top
|
| Name | Description |
|---|
.gif) | CanRaiseEvents | Gets a value indicating whether the component can raise an event. (Inherited from Component.) |
.gif) | Container | Gets the IContainer that contains the Component. (Inherited from Component.) |
.gif) | DesignMode | Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.) |
.gif) | Events | Gets the list of event handlers that are attached to this Component. (Inherited from Component.) |
.gif) | Options | Gets or sets the options for how to search for objects. |
.gif) | Query | Gets or sets the query to be invoked in the searcher (that is, the criteria to be applied to the search for management objects). |
.gif) | Scope | Gets or sets the scope in which to look for objects (the scope represents a WMI namespace). |
.gif) | Site | Gets or sets the ISite of the Component. (Inherited from Component.) |
Top
|
| Name | Description |
|---|
.gif) | Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.) |
Top
Reference