共用方式為


SystemResources(Double, Double, UInt64, UInt64) 建構函式

定義

初始化 SystemResources 結構的新執行個體。

public:
 SystemResources(double guaranteedCpuUnits, double maximumCpuUnits, System::UInt64 guaranteedMemoryInBytes, System::UInt64 maximumMemoryInBytes);
public SystemResources (double guaranteedCpuUnits, double maximumCpuUnits, ulong guaranteedMemoryInBytes, ulong maximumMemoryInBytes);
new Microsoft.Extensions.Diagnostics.ResourceMonitoring.SystemResources : double * double * uint64 * uint64 -> Microsoft.Extensions.Diagnostics.ResourceMonitoring.SystemResources
Public Sub New (guaranteedCpuUnits As Double, maximumCpuUnits As Double, guaranteedMemoryInBytes As ULong, maximumMemoryInBytes As ULong)

參數

guaranteedCpuUnits
Double

系統中可用的CPU單位。

maximumCpuUnits
Double

系統中可用的CPU單位上限。

guaranteedMemoryInBytes
UInt64

以位元組為單位配置給系統的記憶體。

maximumMemoryInBytes
UInt64

以位元組為單位配置給系統的最大記憶體。

適用於