共用方式為


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

定義

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

public:
 ResourceUtilization(double cpuUsedPercentage, System::UInt64 memoryUsedInBytes, Microsoft::Extensions::Diagnostics::ResourceMonitoring::SystemResources systemResources);
public ResourceUtilization (double cpuUsedPercentage, ulong memoryUsedInBytes, Microsoft.Extensions.Diagnostics.ResourceMonitoring.SystemResources systemResources);
new Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceUtilization : double * uint64 * Microsoft.Extensions.Diagnostics.ResourceMonitoring.SystemResources -> Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceUtilization
Public Sub New (cpuUsedPercentage As Double, memoryUsedInBytes As ULong, systemResources As SystemResources)

參數

cpuUsedPercentage
Double

CPU 使用率。

memoryUsedInBytes
UInt64

用於位元組 (立即) 的記憶體。

systemResources
SystemResources

CPU 和記憶體限制。

適用於