WqlObjectQuery 类

定义

表示 WQL 格式的 WMI 数据。Represents a WMI data query in WQL format.

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

构造函数

WqlObjectQuery()

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

WqlObjectQuery(String)

初始化 WqlObjectQuery 类的新实例,并将其初始化到指定的查询。Initializes a new instance of the WqlObjectQuery class initialized to the specified query.

属性

QueryLanguage

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

QueryString

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

(继承自 ManagementQuery)

方法

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. 如果查询有效,将分析查询的类名属性和条件属性。If the query is valid, the class name property and condition property of the query will be parsed.

(继承自 ManagementQuery)
ToString()

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

(继承自 Object)

适用于