How to get the size of available system memory?

后端 未结 5 1008
遥遥无期
遥遥无期 2020-12-02 15:27

Is it possible to get the size of system available memory in C#.NET? if yes how?

5条回答
  •  情深已故
    2020-12-02 15:54

    var performance = new System.Diagnostics.PerformanceCounter("Memory", "Available MBytes");
    var memory = performance.NextValue();
    

提交回复
热议问题