ResourceUtilization Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Captures resource usage at a given point in time.
public value class ResourceUtilization
public readonly struct ResourceUtilization
type ResourceUtilization = struct
Public Structure ResourceUtilization
- Inheritance
Resource |
Initializes a new instance of the ResourceUtilization struct. |
Cpu |
Gets the CPU utilization percentage. |
Memory |
Gets the total memory used. |
Memory |
Gets the memory utilization percentage. |
Snapshot |
Gets the latest snapshot of the resource utilization of the system. |
System |
Gets the CPU and memory limits defined by the underlying system. |
產品 | 版本 |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |