My.Computer.Info 物件

更新:2007 年 11 月

會提供屬性 (Property),用於取得有關電腦的記憶體、載入的組件 (Assembly)、名稱和作業系統的資訊。

備註

由 My.Computer.Info 物件所公開 (Expose) 的屬性會傳回要部署應用程式之電腦的資訊,而這些資訊是在執行階段進行判斷。通常這些資料會與在開發電腦上取得的資料不同。

範例

這個範例使用 My.Computer.Info.AvailablePhysicalMemory 屬性,顯示執行程式碼之電腦的可用實體記憶體量。

MsgBox("Computer's available physical memory: " & _
    My.Computer.Info.AvailablePhysicalMemory)

需求

命名空間Microsoft.VisualBasic.Devices

類別ComputerInfo

組件:Visual Basic 執行階段程式庫 (在 Microsoft.VisualBasic.dll 中)

請參閱

參考

My.Computer.Info 物件成員