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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the RelatedObjectQuery class for a schema query using the given set of parameters. This constructor is used for schema queries only: the first parameter must be set to true .

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

public RelatedObjectQuery(
	bool isSchemaQuery,
	string sourceObject,
	string relatedClass,
	string relationshipClass,
	string relatedQualifier,
	string relationshipQualifier,
	string relatedRole,
	string thisRole
)

Parameters

isSchemaQuery
Type: System.Boolean

true to indicate that this is a schema query; otherwise, false .

sourceObject
Type: System.String

The path of the source class.

relatedClass
Type: System.String

The related objects' required base 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 class is required to play in the relationship.

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: