ComputerInfo.AvailableVirtualMemory Property

 

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

This API is not CLS-compliant.

Namespace:   Microsoft.VisualBasic.Devices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

[CLSCompliantAttribute(false)]
public ulong AvailableVirtualMemory { get; }

Property Value

Type: System.UInt64

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

Exception Condition
Win32Exception

The application cannot obtain the memory status.

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

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)

.NET Framework
Available since 2.0
Return to top
Show: