ComputerInfo.TotalPhysicalMemory Egenskap

Definition

Viktigt!

Detta API uppfyller inte CLS.

Hämtar den totala mängden fysiskt minne för datorn.

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

Egenskapsvärde

En ULong som innehåller antalet byte fysiskt minne för datorn.

Attribut

Undantag

Programmet kan inte hämta minnesstatusen.

Exempel

I det My.Computer.Info.TotalPhysicalMemory här exemplet används egenskapen för att visa den totala mängden fysiskt minne för den dator där koden körs.

MsgBox("Computer's available physical memory: " &
    My.Computer.Info.TotalPhysicalMemory)

Gäller för

Se även