WqlEventQuery 类

定义

表示 WQL 格式的 WMI 事件查询。Represents a WMI event query in WQL format.

public ref class WqlEventQuery : System::Management::EventQuery
public class WqlEventQuery : System.Management.EventQuery
type WqlEventQuery = class
    inherit EventQuery
Public Class WqlEventQuery
Inherits EventQuery
继承

构造函数

WqlEventQuery()

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

WqlEventQuery(String)

基于给定的查询字符串或事件类名初始化 WqlEventQuery 类的新实例。Initializes a new instance of the WqlEventQuery class based on the given query string or event class name.

WqlEventQuery(String, String)

使用指定条件,为指定事件类名初始化 WqlEventQuery 类的新实例。Initializes a new instance of the WqlEventQuery class for the specified event class name, with the specified condition.

WqlEventQuery(String, String, TimeSpan)

使用指定的事件类名、条件和分组间隔初始化 WqlEventQuery 类的新实例。Initializes a new instance of the WqlEventQuery class with the specified event class name, condition, and grouping interval.

WqlEventQuery(String, String, TimeSpan, String[])

使用指定的事件类名、条件、分组间隔和分组属性来初始化 WqlEventQuery 类的新实例。Initializes a new instance of the WqlEventQuery class with the specified event class name, condition, grouping interval, and grouping properties.

WqlEventQuery(String, TimeSpan)

使用指定滞后时间,为指定的事件类初始化 WqlEventQuery 类的新实例。Initializes a new instance of the WqlEventQuery class for the specified event class, with the specified latency time.

WqlEventQuery(String, TimeSpan, String)

使用指定的事件类名、轮询间隔和条件初始化 WqlEventQuery 类的新实例。Initializes a new instance of the WqlEventQuery class with the specified event class name, polling interval, and condition.

WqlEventQuery(String, TimeSpan, String, TimeSpan, String[], String)

使用指定的事件类名、条件、分组间隔、分组属性和指定数目的事件来初始化 WqlEventQuery 类的新实例。Initializes a new instance of the WqlEventQuery class with the specified event class name, condition, grouping interval, grouping properties, and specified number of events.

属性

Condition

获取或设置要应用到指定类的事件的条件。Gets or sets the condition to be applied to events of the specified class.

EventClassName

获取或设置要查询的事件类。Gets or sets the event class to query.

GroupByPropertyList

获取或设置用于对相同类型的事件进行分组的事件的属性。Gets or sets properties in the event to be used for grouping events of the same type.

GroupWithinInterval

获取或设置对相同类型事件进行分组的间隔。Gets or sets the interval to be used for grouping events of the same type.

HavingCondition

获取或设置基于所接收事件的数目要应用到事件聚合的条件。Gets or sets the condition to be applied to the aggregation of events, based on the number of events received.

QueryLanguage

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

QueryString

获取或设置表示查询的字符串。Gets or sets the string representing the query.

WithinInterval

获取或设置此查询中要使用的轮询间隔。Gets or sets the polling interval to be used in this 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()

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

(继承自 Object)

适用于