Export (0) Print
Expand All

ManagementEventWatcher Constructor

.NET Framework 1.1

Initializes a new instance of the ManagementEventWatcher class.

Overload List

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

[Visual Basic] Public Sub New()
[C#] public ManagementEventWatcher();
[C++] public: ManagementEventWatcher();
[JScript] public function ManagementEventWatcher();

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

[Visual Basic] Public Sub New(EventQuery)
[C#] public ManagementEventWatcher(EventQuery);
[C++] public: ManagementEventWatcher(EventQuery*);
[JScript] public function ManagementEventWatcher(EventQuery);

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

[Visual Basic] Public Sub New(String)
[C#] public ManagementEventWatcher(string);
[C++] public: ManagementEventWatcher(String*);
[JScript] public function ManagementEventWatcher(String);

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

[Visual Basic] Public Sub New(ManagementScope, EventQuery)
[C#] public ManagementEventWatcher(ManagementScope, EventQuery);
[C++] public: ManagementEventWatcher(ManagementScope*, EventQuery*);
[JScript] public function ManagementEventWatcher(ManagementScope, EventQuery);

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.

[Visual Basic] Public Sub New(String, String)
[C#] public ManagementEventWatcher(string, string);
[C++] public: ManagementEventWatcher(String*, String*);
[JScript] public function ManagementEventWatcher(String, String);

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 timeout and context information.

[Visual Basic] Public Sub New(ManagementScope, EventQuery, EventWatcherOptions)
[C#] public ManagementEventWatcher(ManagementScope, EventQuery, EventWatcherOptions);
[C++] public: ManagementEventWatcher(ManagementScope*, EventQuery*, EventWatcherOptions*);
[JScript] public function 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 as strings. The options object can specify options such as a timeout and context information.

[Visual Basic] Public Sub New(String, String, EventWatcherOptions)
[C#] public ManagementEventWatcher(string, string, EventWatcherOptions);
[C++] public: ManagementEventWatcher(String*, String*, EventWatcherOptions*);
[JScript] public function ManagementEventWatcher(String, String, EventWatcherOptions);

See Also

ManagementEventWatcher Class | ManagementEventWatcher Members | System.Management Namespace

Show:
© 2015 Microsoft