RelationshipQuery 类

定义

表示 WQL REFERENCES OF 数据查询。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
继承

构造函数

RelationshipQuery()

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

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

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

RelationshipQuery(String)

初始化 RelationshipQuery 类的新实例。Initializes a new instance of the RelationshipQuery 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 instances query.

RelationshipQuery(String, String)

根据给定的源对象和关系类初始化 RelationshipQuery 类的新实例。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 类的新实例。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).

属性

ClassDefinitionsOnly

获取或设置一个值,该值指示只返回相关关系对象的类定义。Gets or sets a value indicating that only the class definitions of the relevant relationship objects be returned.

IsSchemaQuery

获取或设置一个值,该值指示此查询是架构查询还是实例查询。Gets or sets a value indicating whether this query 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)
RelationshipClass

获取或设置查询中所需的关系对象的类。Gets or sets the class of the relationship objects wanted in the query.

RelationshipQualifier

获取或设置关系对象上所需的限定符。Gets or sets a qualifier required on the relationship objects.

SourceObject

获取或设置此查询的源对象。Gets or sets the source object for this query.

ThisRole

获取或设置源对象在关系中扮演的角色。Gets or sets the role of the source object 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()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于