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

分配给系统的最大内存(以字节为单位)。

适用于