WqlEventQuery Constructor (String, String, TimeSpan)


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

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

public WqlEventQuery(
	string eventClassName,
	string condition,
	TimeSpan groupWithinInterval


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.

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