ComputerInfo.TotalPhysicalMemory Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.