RelatedObjectQuery Constructor (String)

 

Initializes a new instance of the RelatedObjectQuery class. If the specified string can be successfully parsed as a WQL query, it is considered to be the query string; otherwise, it is assumed to be the path of the source object for the query. In this case, the query is assumed to be an instance query.

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

public RelatedObjectQuery(
	string queryOrSourceObject
)

Parameters

queryOrSourceObject
Type: System.String

The query string or the path of the source object.

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: