My.Computer.Info 对象

更新:2007 年 11 月

提供用于获取有关计算机内存、已加载的程序集、名称和操作系统的信息的属性。

备注

由 My.Computer.Info 对象公开的属性会返回有关从中部署应用程序的计算机(在运行时确定是哪台计算机)的信息。一般情况下,此数据与开发计算机上的可用数据不同。

示例

此示例使用 My.Computer.Info.AvailablePhysicalMemory 属性显示运行代码的计算机的可用物理内存量。

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

要求

命名空间:Microsoft.VisualBasic.Devices

类:ComputerInfo

**程序集:**Visual Basic Runtime Library(位于 Microsoft.VisualBasic.dll 中)

请参见

参考

My.Computer.Info 对象成员