語言

ResourceMonitoringOptions.SamplingInterval 屬性

定義

警告

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

取得或設定新利用樣本被捕捉的間隔。

public:
 property TimeSpan SamplingInterval { 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 SamplingInterval { get; set; }
public TimeSpan SamplingInterval { 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.SamplingInterval : TimeSpan with get, set
member this.SamplingInterval : TimeSpan with get, set
Public Property SamplingInterval As TimeSpan

屬性值

預設值為 1 秒。

屬性

備註

此值必須小於或等 CollectionWindow於 。

適用於