RelationshipQuery RelationshipQuery RelationshipQuery RelationshipQuery Class

Definition

Represents a WQL REFERENCES OF data query.

public ref class RelationshipQuery : System::Management::WqlObjectQuery
public class RelationshipQuery : System.Management.WqlObjectQuery
type RelationshipQuery = class
    inherit WqlObjectQuery
Public Class RelationshipQuery
Inherits WqlObjectQuery
Inheritance

Constructors

RelationshipQuery() RelationshipQuery() RelationshipQuery() RelationshipQuery()

Initializes a new instance of the RelationshipQuery class. This is the parameterless constructor.

RelationshipQuery(Boolean, String, String, String, String) RelationshipQuery(Boolean, String, String, String, String) RelationshipQuery(Boolean, String, String, String, String) RelationshipQuery(Boolean, String, String, String, String)

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

RelationshipQuery(String) RelationshipQuery(String) RelationshipQuery(String) RelationshipQuery(String)

Initializes a new instance of the RelationshipQuery 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 instances query.

RelationshipQuery(String, String) RelationshipQuery(String, String) RelationshipQuery(String, String) RelationshipQuery(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).

RelationshipQuery(String, String, String, String, Boolean) RelationshipQuery(String, String, String, String, Boolean) RelationshipQuery(String, String, String, String, Boolean) RelationshipQuery(String, String, String, String, Boolean)

Initializes a new instance of the RelationshipQuery class for the given set of parameters. The query is assumed to be an instance query (as opposed to a schema query).

Properties

ClassDefinitionsOnly ClassDefinitionsOnly ClassDefinitionsOnly ClassDefinitionsOnly

Gets or sets a value indicating that only the class definitions of the relevant relationship objects be returned.

IsSchemaQuery IsSchemaQuery IsSchemaQuery IsSchemaQuery

Gets or sets a value indicating whether this query is a schema query or an instance query.

QueryLanguage QueryLanguage QueryLanguage QueryLanguage

Gets the language of the query.

(Inherited from WqlObjectQuery)
QueryString QueryString QueryString QueryString

Gets or sets the query in text format.

(Inherited from ManagementQuery)
RelationshipClass RelationshipClass RelationshipClass RelationshipClass

Gets or sets the class of the relationship objects wanted in the query.

RelationshipQualifier RelationshipQualifier RelationshipQualifier RelationshipQualifier

Gets or sets a qualifier required on the relationship objects.

SourceObject SourceObject SourceObject SourceObject

Gets or sets the source object for this query.

ThisRole ThisRole ThisRole ThisRole

Gets or sets the role of the source object in the relationship.

Methods

BuildQuery() BuildQuery() BuildQuery() BuildQuery()

Builds the query string according to the current property values.

Clone() Clone() Clone() Clone()

Creates a copy of the object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ParseQuery(String) ParseQuery(String) ParseQuery(String) ParseQuery(String)

Parses the query string and sets the property values accordingly.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to