Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

TotalPhysicalMemory Property

Location

My.Computer.Info.TotalPhysicalMemory

Syntax

Dim result As ULong = My.Computer.Info.TotalPhysicalMemory

Description

The TotalPhysicalMemory property returns the total amount of installed bytes of physical memory on the local computer.

Usage at a Glance

  • This property is read-only.

  • This property only works on platforms that make the information available. This includes Windows XP, Windows 2000 Professional, Windows Server 2003, Windows 2000 Server, or any later versions of these systems.

  • An exception is thrown if for any reason the application is unable to determine the current status of memory on the system.

Related Framework Entries

  • Microsoft.VisualBasic.Devices.ComputerInfo.TotalPhysicalMemory Property

See Also

AvailablePhysicalMemory Property, AvailableVirtualMemory Property, Info Object (My.Computer), TotalVirtualMemory Property

Категории