Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

My.Computer.Info.AvailablePhysicalMemory Property 

Gets the total amount of free physical memory for the computer.


' Usage
Dim value As ULong = My.Computer.Info.AvailablePhysicalMemory
' Declaration
Public ReadOnly Property AvailablePhysicalMemory As ULong

A ULong containing the number of bytes of free physical memory for the computer.

The following condition can cause an exception:

The My.Computer.Info.AvailablePhysicalMemory property requires Windows XP, Windows 2000 Professional, Windows Server 2003, or Windows 2000 Server.

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)

Namespace: Microsoft.VisualBasic.Devices

Class: ComputerInfo

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

Availability by Project Type

Project type Available

Windows Application

Yes

Class Library

Yes

Console Application

Yes

Windows Control Library

Yes

Web Control Library

Yes

Windows Service

Yes

Web Site

Yes

No permissions are required.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.