RelationshipQuery Constructor (String, String)


Initializes a new instance of the RelationshipQuery class for the given source object and relationship 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 RelationshipQuery(
	string sourceObject,
	string relationshipClass


Type: System.String

The path of the source object for this query.

Type: System.String

The type of relationship for which to 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