Delen via


My.Computer.Info Object

Provides properties for getting information about the computer's memory, loaded assemblies, name, and operating system.

Remarks

The properties exposed by the My.Computer.Info object return information about the computer from which the application is deployed, as determined at run time. Typically, this data differs from what was available on the development computer.

Example

This example uses the My.Computer.Info.AvailablePhysicalMemory property to display the amount of available physical memory for the computer on which the code runs.

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

Requirements

Namespace:Microsoft.VisualBasic.Devices

Class:ComputerInfo

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

See Also

Reference

My.Computer.Info Object Members