ComputerInfo.TotalVirtualMemory Property

Definition

Important

This API is not CLS-compliant.

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

public:
 property System::UInt64 TotalVirtualMemory { System::UInt64 get(); };
[System.CLSCompliant(false)]
public ulong TotalVirtualMemory { get; }
[<System.CLSCompliant(false)>]
member this.TotalVirtualMemory : uint64
Public ReadOnly Property TotalVirtualMemory As ULong

Property Value

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

Attributes

Exceptions

The application cannot obtain the memory status.

Examples

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)

Applies to

See also