Ағылшын тілінде оқу

Бөлісу құралы:


IResourceMonitor.GetUtilization(TimeSpan) Method

Definition

Gets utilization for the specified time window.

public Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceUtilization GetUtilization (TimeSpan window);

Parameters

window
TimeSpan

A TimeSpan representing the time window for which utilization is requested.

Returns

The utilization during the time window specified by window.

Exceptions

window is greater than the maximum window size configured while adding the service to the services collection.

Applies to

Өнім Нұсқалар
.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)