SelectQuery 类

定义

表示 WQL SELECT 数据查询。Represents a WQL SELECT data query.

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

构造函数

SelectQuery()

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

SelectQuery(Boolean, String)

为架构查询初始化 SelectQuery 类的新实例(可以指定条件)。Initializes a new instance of the SelectQuery class for a schema query, optionally specifying a condition.

SelectQuery(String)

为指定查询或指定类名初始化 SelectQuery 类的新实例。Initializes a new instance of the SelectQuery class for the specified query or the specified class name.

SelectQuery(String, String)

用指定的类名和条件初始化 SelectQuery 类的新实例。Initializes a new instance of the SelectQuery class with the specified class name and condition.

SelectQuery(String, String, String[])

在只选择指定属性的情况下,使用指定的类名和条件初始化 SelectQuery 类的新实例。Initializes a new instance of the SelectQuery class with the specified class name and condition, selecting only the specified properties.

属性

ClassName

获取或设置要从查询中选择的类名。Gets or sets the class name to be selected from in the query.

Condition

获取或设置要在 SELECT 查询中应用的条件。Gets or sets the condition to be applied in the SELECT query.

IsSchemaQuery

获取或设置一个值,该值指示此查询是架构查询还是实例查询。Gets or sets a value indicating whether this query is a schema query or an instances query.

QueryLanguage

获取查询的语言。Gets the language of the query.

(继承自 WqlObjectQuery)
QueryString

以字符串形式获取或设置 SelectQuery 对象中的查询。Gets or sets the query in the SelectQuery object, in string form.

SelectedProperties

获取或设置要在查询中选定的属性名的数组。Ggets or sets an array of property names to be selected in the query.

方法

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)

适用于