Bagikan melalui


ComputerInfo.AvailablePhysicalMemory Properti

Definisi

Penting

API ini bukan kompatibel CLS.

Mendapatkan jumlah total memori fisik gratis untuk komputer.

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

Nilai Properti

yang ULong berisi jumlah byte memori fisik bebas untuk komputer.

Atribut

Pengecualian

Aplikasi tidak dapat memperoleh status memori.

Contoh

Contoh ini menggunakan My.Computer.Info.AvailablePhysicalMemory properti untuk menampilkan jumlah memori fisik yang tersedia untuk komputer tempat kode berjalan.

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

Berlaku untuk

Lihat juga