PDA

View Full Version : System.Management



smart_boy
دوشنبه 13 دی 1389, 17:45 عصر
از دوستان کسی با اینNamespace System.Management کار کرده؟


MSDN:

Provides access to a rich set of management information and management events about
the system, devices, and applications instrumented to the Windows Management Instrumentation (WMI) infrastructure.
Applications and services can query for interesting management information (such as
how much free space is left on the disk, what is the current CPU utilization, which database a certain application is connected to, and much more), using classes derived
from ManagementObjectSearcher and ManagementQuery, or subscribe to a variety of
management events using the ManagementEventWatcher class. The accessible data
can be from both managed and unmanaged components in the distributed environment.


برای اطلاعات مربوط به سیستم ، مثل سی پی یو ، هارد دیسک و ... استفاده میشه ولی تو پروژه زیر فراخوانی نشد!



Imports System.Management
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim mg As ManagementObjectSearcher

End Sub
End Class

کسی میدونه چطور از این System.Management باید استفاده کرد؟