RelationshipQuery Class
TOC
Collapse the table of content
Expand the table of content

RelationshipQuery Class

 

Represents a WQL REFERENCES OF data query.

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

System.Object
  System.Management.ManagementQuery
    System.Management.ObjectQuery
      System.Management.WqlObjectQuery
        System.Management.RelationshipQuery

public class RelationshipQuery : WqlObjectQuery

NameDescription
System_CAPS_pubmethodRelationshipQuery()

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

System_CAPS_pubmethodRelationshipQuery(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.

System_CAPS_pubmethodRelationshipQuery(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.

System_CAPS_pubmethodRelationshipQuery(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).

System_CAPS_pubmethodRelationshipQuery(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).

NameDescription
System_CAPS_pubpropertyClassDefinitionsOnly

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

System_CAPS_pubpropertyIsSchemaQuery

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

System_CAPS_pubpropertyQueryLanguage

Gets the language of the query. (Inherited from WqlObjectQuery.)

System_CAPS_pubpropertyQueryString

Gets or sets the query in text format. (Inherited from ManagementQuery.)

System_CAPS_pubpropertyRelationshipClass

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

System_CAPS_pubpropertyRelationshipQualifier

Gets or sets a qualifier required on the relationship objects.

System_CAPS_pubpropertySourceObject

Gets or sets the source object for this query.

System_CAPS_pubpropertyThisRole

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

NameDescription
System_CAPS_protmethodBuildQuery()

Builds the query string according to the current property values.

System_CAPS_pubmethodClone()

Creates a copy of the object. (Overrides WqlObjectQuery.Clone().)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodParseQuery(String)

Parses the query string and sets the property values accordingly. (Overrides ManagementQuery.ParseQuery(String).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft