System.Management

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need help to System.Mangement namespace. MSDN documentation is not
exhaustive:(. f.e hwere is written how to correctly put
WqlEventQuery.EventClassName? How should I bbuild that string? I just looked
on MSDN, but nothing's there....
 
DAMAR said:
I need help to System.Mangement namespace. MSDN documentation is not
exhaustive:(. f.e hwere is written how to correctly put
WqlEventQuery.EventClassName? How should I bbuild that string? I just looked
on MSDN, but nothing's there....
The MSDN documentation for the class, with usage examples can be found
here:
http://msdn.microsoft.com/library/d...rfsystemmanagementwqleventqueryclasstopic.asp

The EventClassName property is used to specify which event class to
query. The following code:
WqlEventQuery q=new WqlEventQuery();
q.EventClassName="MyEvent"

Is equal to the query SELECT * FROM MyEvent.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/
 
DAMAR said:
I need help to System.Mangement namespace. MSDN documentation is not
exhaustive:(. f.e hwere is written how to correctly put
WqlEventQuery.EventClassName? How should I bbuild that string? I just
looked
on MSDN, but nothing's there....

System.Managed classes are WMI wrapper classes so to find details on WMI
queries you have to consult WMI in MSDN .

Willy.
 
Back
Top