语言

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
特性

构造函数

名称 说明
SystemResources(Double, Double, UInt64, UInt64)
已过时.

初始化 结构的新实例 SystemResources 。

属性

名称 说明
GuaranteedCpuUnits
已过时.

获取系统中可用的 CPU 单位。

GuaranteedMemoryInBytes
已过时.

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

MaximumCpuUnits
已过时.

获取系统中可用的最大 CPU 单位。

MaximumMemoryInBytes
已过时.

获取容器的请求内存限制或为 VM 分配的最大值。

适用于