RelatedObjectQuery Class
.NET Framework 4.5
Represents a WQL ASSOCIATORS OF data query. It can be used for both instances and schema queries.
System.Object
System.Management.ManagementQuery
System.Management.ObjectQuery
System.Management.WqlObjectQuery
System.Management.RelatedObjectQuery
System.Management.ManagementQuery
System.Management.ObjectQuery
System.Management.WqlObjectQuery
System.Management.RelatedObjectQuery
Assembly: System.Management (in System.Management.dll)
The RelatedObjectQuery type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | RelatedObjectQuery() | Initializes a new instance of the RelatedObjectQuery class. This is the default constructor. |
![]() | RelatedObjectQuery(String) | Initializes a new instance of the RelatedObjectQuery 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 instance query. |
![]() | RelatedObjectQuery(String, String) | Initializes a new instance of the RelatedObjectQuery class for the given source object and related class. The query is assumed to be an instance query (as opposed to a schema query). |
![]() | RelatedObjectQuery(Boolean, String, String, String, String, String, String, String) | 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 . |
![]() | RelatedObjectQuery(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). |
| Name | Description | |
|---|---|---|
![]() | ClassDefinitionsOnly | Gets or sets a value indicating that for all instances that adhere to the query, only their class definitions be returned. This parameter is only valid for instance queries. |
![]() | IsSchemaQuery | Gets or sets a value indicating whether this is a schema query or an instance query. |
![]() | QueryLanguage | Gets the language of the query. (Inherited from WqlObjectQuery.) |
![]() | QueryString | Gets or sets the query in text format. (Inherited from ManagementQuery.) |
![]() | RelatedClass | Gets or sets the class of the endpoint objects (the related class). |
![]() | RelatedQualifier | Gets or sets a qualifier required to be defined on the related objects. |
![]() | RelatedRole | Gets or sets the role that the related objects returned should be playing in the relationship. |
![]() | RelationshipClass | Gets or sets the type of relationship (association). |
![]() | RelationshipQualifier | Gets or sets a qualifier required to be defined on the relationship objects. |
![]() | SourceObject | Gets or sets the source object to be used for the query. For instance queries, this is typically an instance path. For schema queries, this is typically a class name. |
![]() | ThisRole | Gets or sets the role that the source object should be playing in the relationship. |
| Name | Description | |
|---|---|---|
![]() | BuildQuery | Builds the query string according to the current property values. |
![]() | Clone | Creates a copy of the object. (Overrides WqlObjectQuery.Clone().) |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ParseQuery | Parses the query string and sets the property values accordingly. (Overrides ManagementQuery.ParseQuery(String).) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
