語言

SystemResources 結構

定義

警告

This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.

提供基礎系統所定義之 CPU 和記憶體限制的相關信息。

public value class SystemResources
[System.Obsolete("This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.", DiagnosticId="EXTOBS0001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public readonly struct SystemResources
public readonly struct SystemResources
[<System.Obsolete("This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.", DiagnosticId="EXTOBS0001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type SystemResources = struct
type SystemResources = struct
Public Structure SystemResources
繼承
SystemResources
屬性

建構函式

名稱 Description
SystemResources(Double, Double, UInt64, UInt64)
已淘汰.

初始化一個新的結構體實例 SystemResources 。

屬性

名稱 Description
GuaranteedCpuUnits
已淘汰.

取得系統中可用的 CPU 單元。

GuaranteedMemoryInBytes
已淘汰.

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

MaximumCpuUnits
已淘汰.

取得系統中可用的最大 CPU 單位。

MaximumMemoryInBytes
已淘汰.

取得容器的請求記憶體上限或虛擬機最大分配的記憶體。

適用於