語言

ResourceMonitoringOptions.CollectionWindow 屬性

定義

警告

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

取得或設定可請求使用率的最大時間窗口。

public:
 property TimeSpan CollectionWindow { TimeSpan get(); void set(TimeSpan value); };
[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 TimeSpan CollectionWindow { get; set; }
public TimeSpan CollectionWindow { get; set; }
[<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}")>]
member this.CollectionWindow : TimeSpan with get, set
member this.CollectionWindow : TimeSpan with get, set
Public Property CollectionWindow As TimeSpan

屬性值

預設值為 5 秒。

屬性

備註

此值代表資源監控器追蹤系統利用率資訊的總時間。

適用於