語言

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

系統所分配的最大記憶體(以位元組為單位)。

適用於