ComputerInfo.TotalVirtualMemory Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)