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


Type: System.String

The name of the event class to query.

Type: System.String

The condition to apply to events of the specified class.

Type: System.TimeSpan

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

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