.Net Core中计算机上的RAM总量

时间:2018-01-10 08:45:03

标签: c# .net-core

在.NET Framework上,我们可以使用TotalPhysicalMemory类中的ComputerInfo属性,如下面的代码段所示:

var totalPhysicalMemory = new Microsoft.VisualBasic.Devices.ComputerInfo().TotalPhysicalMemory;


我看到这个功能有API Proposal但不认为它已经出来了。
有没有解决这个.NET Core或者我可能错过的东西?

0 个答案:

没有答案