Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ManagementEventWatcher Constructor

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method ManagementEventWatcher() Initializes a new instance of the ManagementEventWatcher class. For further initialization, set the properties on the object. This is the default constructor.
Public method ManagementEventWatcher(EventQuery) Initializes a new instance of the ManagementEventWatcher class when given a WMI event query.
Public method ManagementEventWatcher(String) Initializes a new instance of the ManagementEventWatcher class when given a WMI event query in the form of a string.
Public method ManagementEventWatcher(ManagementScope, EventQuery) Initializes a new instance of the ManagementEventWatcher class that listens for events conforming to the given WMI event query.
Public method ManagementEventWatcher(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.
Public method ManagementEventWatcher(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.
Public method ManagementEventWatcher(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.
Top

Community Additions

ADD
Show:
© 2015 Microsoft