共用方式為


IHostEnvironmentStatistics.CpuUsage 屬性

定義

從 0.0-100.0 取得主機 CPU 使用量。

public float? CpuUsage { get; }
member this.CpuUsage : Nullable<single>
Public ReadOnly Property CpuUsage As Nullable(Of Single)

屬性值

0.7

範例

70.0f 為 70% 的 CPU 使用量。

適用於