ResourceMonitoringOptions.SamplingInterval Vlastnost

Definice

Upozornění

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

Získá nebo nastaví interval, ve kterém je zachycen nový vzorek využití.

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

Hodnota vlastnosti

Výchozí hodnota je 1 sekunda.

Atributy

Poznámky

Tato hodnota musí být menší nebo rovna CollectionWindow.

Platí pro