This documentation is archived and is not being maintained.

My.Computer.Info.AvailableVirtualMemory Property 

Gets the total amount of the computer's free virtual address space.


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

A ULong containing the number of bytes of the computer's free virtual address space.

The following condition can cause an exception:

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

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

MsgBox("Computer's available virtual memory: " & _
    My.Computer.Info.AvailableVirtualMemory)

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.

Show: