RelatedObjectQuery 类

定义

表示 WQL ASSOCIATORS OF 数据查询。Represents a WQL ASSOCIATORS OF data query. 它可以用于实例查询和架构查询。It can be used for both instances and schema queries.

public ref class RelatedObjectQuery : System::Management::WqlObjectQuery
public class RelatedObjectQuery : System.Management.WqlObjectQuery
type RelatedObjectQuery = class
    inherit WqlObjectQuery
Public Class RelatedObjectQuery
Inherits WqlObjectQuery
继承

构造函数

RelatedObjectQuery()

初始化 RelatedObjectQuery 类的新实例。Initializes a new instance of the RelatedObjectQuery class. 这是无参数构造函数。This is the parameterless constructor.

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

使用给定的参数集,为架构查询初始化 RelatedObjectQuery 类的新实例。Initializes a new instance of the RelatedObjectQuery class for a schema query using the given set of parameters. 此构造函数只能用于架构查询:第一个参数必须设置为 trueThis constructor is used for schema queries only: the first parameter must be set to true .

RelatedObjectQuery(String)

初始化 RelatedObjectQuery 类的新实例。Initializes a new instance of the RelatedObjectQuery class. 如果可以将指定的字符串成功地分析为 WQL 查询,则认为该字符串是查询字符串;否则,将假定它是查询的源对象的路径。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)

根据给定源对象和相关类初始化 RelatedObjectQuery 类的新实例。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(String, String, String, String, String, String, String, Boolean)

按照给定的参数集初始化 RelatedObjectQuery 类的新实例。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).

属性

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.

(继承自 WqlObjectQuery)
QueryString

以文本格式获取或设置查询。Gets or sets the query in text format.

(继承自 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.

方法

BuildQuery()

根据当前属性值生成查询字符串。Builds the query string according to the current property values.

Clone()

创建对象的一个副本。Creates a copy of the object.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ParseQuery(String)

分析查询字符串并相应地设置属性值。Parses the query string and sets the property values accordingly.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于