Bagikan melalui


ComputerInfo.TotalPhysicalMemory Properti

Definisi

Penting

API ini bukan kompatibel CLS.

Mendapatkan jumlah total memori fisik untuk komputer.

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

Nilai Properti

Yang ULong berisi jumlah byte memori fisik untuk komputer.

Atribut

Pengecualian

Aplikasi tidak dapat memperoleh status memori.

Contoh

Contoh ini menggunakan My.Computer.Info.TotalPhysicalMemory properti untuk menampilkan jumlah total memori fisik untuk komputer tempat kode berjalan.

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

Berlaku untuk

Lihat juga