Språk

ResourceMonitoringOptions.SamplingInterval Egenskap

Definition

Varning

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

Hämtar eller anger det intervall med vilket ett nytt användningsexempel samlas in.

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

Egenskapsvärde

Standardvärdet är 1 sekund.

Attribut

Kommentarer

Det här värdet måste vara mindre än eller lika med CollectionWindow.

Gäller för