How to get the size of available system memory?

后端 未结 5 1009
遥遥无期
遥遥无期 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:49

    Use Microsoft.VisualBasic.Devices.ComputerInfo.TotalPhysicalMemory.

    Right-click your project, Add Reference, select Microsoft.VisualBasic.

提交回复
热议问题