Query Property
Collapse the table of content
Expand the table of content

ManagementObjectSearcher.Query Property

 

Gets or sets the query to be invoked in the searcher (that is, the criteria to be applied to the search for management objects).

Namespace:   System.Management
Assembly:  System.Management (in System.Management.dll)

public ObjectQuery Query { get; set; }

Property Value

Type: System.Management.ObjectQuery

Returns an ObjectQuery that contains the query to be invoked in the searcher.

When the value of this property is changed, the ManagementObjectSearcher is reset to use the new query.

The criteria to apply to the query.

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft