RelatedObjectQuery Constructor (String, String, String, String, String, String, String, Boolean)

 

Initializes a new instance of the RelatedObjectQuery class for the given set of parameters. 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,
	string relationshipClass,
	string relatedQualifier,
	string relationshipQualifier,
	string relatedRole,
	string thisRole,
	bool classDefinitionsOnly
)

Parameters

sourceObject
Type: System.String

The path of the source object.

relatedClass
Type: System.String

The related objects' required class.

relationshipClass
Type: System.String

The relationship type.

relatedQualifier
Type: System.String

The qualifier required to be present on the related objects.

relationshipQualifier
Type: System.String

The qualifier required to be present on the relationships.

relatedRole
Type: System.String

The role that the related objects are required to play in the relationship.

thisRole
Type: System.String

The role that the source object is required to play in the relationship.

classDefinitionsOnly
Type: System.Boolean

true to return only the class definitions of the related objects; otherwise, false .

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: