ManagementEventWatcher Constructor

ManagementEventWatcher Constructor

 

Initializes a new instance of the ManagementEventWatcher class.

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

NameDescription
System_CAPS_pubmethodManagementEventWatcher()

Initializes a new instance of the ManagementEventWatcher class. For further initialization, set the properties on the object. This is the default constructor.

System_CAPS_pubmethodManagementEventWatcher(EventQuery)

Initializes a new instance of the ManagementEventWatcher class when given a WMI event query.

System_CAPS_pubmethodManagementEventWatcher(ManagementScope, EventQuery)

Initializes a new instance of the ManagementEventWatcher class that listens for events conforming to the given WMI event query.

System_CAPS_pubmethodManagementEventWatcher(ManagementScope, EventQuery, EventWatcherOptions)

Initializes a new instance of the ManagementEventWatcher class that listens for events conforming to the given WMI event query, according to the specified options. For this variant, the query and the scope are specified objects. The options object can specify options such as time-out and context information.

System_CAPS_pubmethodManagementEventWatcher(String)

Initializes a new instance of the ManagementEventWatcher class when given a WMI event query in the form of a string.

System_CAPS_pubmethodManagementEventWatcher(String, String)

Initializes a new instance of the ManagementEventWatcher class that listens for events conforming to the given WMI event query. For this variant, the query and the scope are specified as strings.

System_CAPS_pubmethodManagementEventWatcher(String, String, EventWatcherOptions)

Initializes a new instance of the ManagementEventWatcher class that listens for events conforming to the given WMI event query, according to the specified options. For this variant, the query and the scope are specified as strings. The options object can specify options such as a time-out and context information.

Return to top
Show:
© 2016 Microsoft