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

 

Initializes a new instance of the WqlEventQuery class with the specified event class name, condition, grouping interval, and grouping properties.

Namespace:   System.Management
Assembly:  System.Management (in System.Management.dll)

public WqlEventQuery(
	string eventClassName,
	string condition,
	TimeSpan groupWithinInterval,
	string[] groupByPropertyList
)

Parameters

eventClassName
Type: System.String

The name of the event class to query.

condition
Type: System.String

The condition to apply to events of the specified class.

groupWithinInterval
Type: System.TimeSpan

The specified interval at which WMI sends one aggregate event, rather than many events.

groupByPropertyList
Type: System.String[]

The properties in the event class by which the events should be grouped.

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

.NET Framework
Available since 1.1
Return to top
Show: