RelatedObjectQuery Constructor (String, String)

 

Initializes a new instance of the RelatedObjectQuery class for the given source object and related class. The query is assumed to be an instance query (as opposed to a schema query).

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

public RelatedObjectQuery(
	string sourceObject,
	string relatedClass
)

Parameters

sourceObject
Type: System.String

The path of the source object for this query.

relatedClass
Type: System.String

The related objects' class.

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: