My.Computer.Info.TotalVirtualMemory Property 

Gets the total amount of virtual address space available for the computer.

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

Return Value

A ULong containing the number of bytes of virtual address space available for the computer.

Exceptions

The following condition can cause an exception:

Remarks

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

Example

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

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

Requirements

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

Permissions

No permissions are required.

See Also

Reference

My.Computer.Info Object
My.Computer.Info.AvailableVirtualMemory Property
My.Computer.Info.TotalPhysicalMemory Property
Microsoft.VisualBasic.Devices.ComputerInfo.TotalVirtualMemory