Meter.CreateObservableUpDownCounter Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| Nazwa | Opis |
|---|---|
| CreateObservableUpDownCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String) |
Tworzy obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza rosnące lub malejące wartości podczas obserwowania instrumentu. |
| CreateObservableUpDownCounter<T>(String, Func<Measurement<T>>, String, String) |
Tworzy obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza rosnące lub malejące wartości podczas obserwowania instrumentu. |
| CreateObservableUpDownCounter<T>(String, Func<T>, String, String) |
Tworzy obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza rosnące lub malejące wartości podczas obserwowania instrumentu. |
| CreateObservableUpDownCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String, IEnumerable<KeyValuePair<String,Object>>) |
Utwórz obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza wzrost lub zmniejszenie wartości podczas obserwowania instrumentu. |
| CreateObservableUpDownCounter<T>(String, Func<Measurement<T>>, String, String, IEnumerable<KeyValuePair<String,Object>>) |
Utwórz obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza wzrost lub zmniejszenie wartości podczas obserwowania instrumentu. |
| CreateObservableUpDownCounter<T>(String, Func<T>, String, String, IEnumerable<KeyValuePair<String,Object>>) |
Utwórz obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza wzrost lub zmniejszenie wartości podczas obserwowania instrumentu. |
CreateObservableUpDownCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String)
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
Tworzy obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza rosnące lub malejące wartości podczas obserwowania instrumentu.
public System.Diagnostics.Metrics.ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<System.Collections.Generic.IEnumerable<System.Diagnostics.Metrics.Measurement<T>>> observeValues, string? unit = default, string? description = default) where T : struct;
member this.CreateObservableUpDownCounter : string * Func<seq<System.Diagnostics.Metrics.Measurement<'T>>> * string * string -> System.Diagnostics.Metrics.ObservableUpDownCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableUpDownCounter(Of T As Structure) (name As String, observeValues As Func(Of IEnumerable(Of Measurement(Of T))), Optional unit As String = Nothing, Optional description As String = Nothing) As ObservableUpDownCounter(Of T)
Parametry typu
- T
Typ liczbowy miary.
Parametry
- name
- String
Nazwa instrumentu. Nie można mieć .null
- observeValues
- Func<IEnumerable<Measurement<T>>>
Wywołanie zwrotne do wywołania w celu pobrania pomiarów, gdy element jest wywoływany Observe() przez RecordObservableInstruments()element .
- unit
- String
Opcjonalna jednostka instrumentacja pomiarów.
- description
- String
Opcjonalny opis instrumentu.
Zwraca
Nowy obserwowalny licznik w dół.
Uwagi
Note
W przeciwieństwie do funkcji UpDownCounter, która przyjmuje wartość przyrostową/różnicową, funkcja wywołania zwrotnego zgłasza wartość bezwzględną obiektu ObservableUpDownCounter. Aby określić zgłoszoną szybkość zmieniania się elementu ObservableUpDownCounter, używana jest różnica między kolejnymi pomiarami.
Przykładowe zastosowania dla obiektu ObservableUpDownCounter: rozmiar sterty procesu lub przybliżona liczba elementów w buforze cyklicznym bez blokady.
Dotyczy
CreateObservableUpDownCounter<T>(String, Func<Measurement<T>>, String, String)
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
Tworzy obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza rosnące lub malejące wartości podczas obserwowania instrumentu.
public System.Diagnostics.Metrics.ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<System.Diagnostics.Metrics.Measurement<T>> observeValue, string? unit = default, string? description = default) where T : struct;
member this.CreateObservableUpDownCounter : string * Func<System.Diagnostics.Metrics.Measurement<'T>> * string * string -> System.Diagnostics.Metrics.ObservableUpDownCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableUpDownCounter(Of T As Structure) (name As String, observeValue As Func(Of Measurement(Of T)), Optional unit As String = Nothing, Optional description As String = Nothing) As ObservableUpDownCounter(Of T)
Parametry typu
- T
Typ liczbowy miary.
Parametry
- name
- String
Nazwa instrumentu. Nie można mieć .null
- observeValue
- Func<Measurement<T>>
Wywołanie zwrotne do wywołania w celu pobrania pomiarów, gdy element jest wywoływany Observe() przez RecordObservableInstruments()
- unit
- String
Opcjonalna jednostka instrumentacja pomiarów.
- description
- String
Opcjonalny opis instrumentu.
Zwraca
Nowy obserwowalny licznik w dół.
Uwagi
Note
W przeciwieństwie do funkcji UpDownCounter, która przyjmuje wartość przyrostową/różnicową, funkcja wywołania zwrotnego zgłasza wartość bezwzględną obiektu ObservableUpDownCounter. Aby określić zgłoszoną szybkość zmieniania się elementu ObservableUpDownCounter, używana jest różnica między kolejnymi pomiarami.
Przykładowe zastosowania dla obiektu ObservableUpDownCounter: rozmiar sterty procesu lub przybliżona liczba elementów w buforze cyklicznym bez blokady.
Dotyczy
CreateObservableUpDownCounter<T>(String, Func<T>, String, String)
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
Tworzy obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza rosnące lub malejące wartości podczas obserwowania instrumentu.
public System.Diagnostics.Metrics.ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<T> observeValue, string? unit = default, string? description = default) where T : struct;
member this.CreateObservableUpDownCounter : string * Func<'T (requires 'T : struct)> * string * string -> System.Diagnostics.Metrics.ObservableUpDownCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableUpDownCounter(Of T As Structure) (name As String, observeValue As Func(Of T), Optional unit As String = Nothing, Optional description As String = Nothing) As ObservableUpDownCounter(Of T)
Parametry typu
- T
Typ liczbowy miary.
Parametry
- name
- String
Nazwa instrumentu. Nie można mieć .null
- observeValue
- Func<T>
Wywołanie zwrotne do wywołania w celu pobrania pomiarów, gdy element jest wywoływany Observe() przez RecordObservableInstruments()element .
- unit
- String
Opcjonalna jednostka instrumentacja pomiarów.
- description
- String
Opcjonalny opis instrumentu.
Zwraca
Nowy obserwowalny licznik w dół.
Uwagi
Note
W przeciwieństwie do funkcji UpDownCounter, która przyjmuje wartość przyrostową/różnicową, funkcja wywołania zwrotnego zgłasza wartość bezwzględną obiektu ObservableUpDownCounter. Aby określić zgłoszoną szybkość zmieniania się elementu ObservableUpDownCounter, używana jest różnica między kolejnymi pomiarami.
Przykładowe zastosowania dla obiektu ObservableUpDownCounter: rozmiar sterty procesu lub przybliżona liczba elementów w buforze cyklicznym bez blokady.
Dotyczy
CreateObservableUpDownCounter<T>(String, Func<IEnumerable<Measurement<T>>>, String, String, IEnumerable<KeyValuePair<String,Object>>)
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
Utwórz obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza wzrost lub zmniejszenie wartości podczas obserwowania instrumentu.
public:
generic <typename T>
where T : value class System::Diagnostics::Metrics::ObservableUpDownCounter<T> ^ CreateObservableUpDownCounter(System::String ^ name, Func<System::Collections::Generic::IEnumerable<System::Diagnostics::Metrics::Measurement<T>> ^> ^ observeValues, System::String ^ unit, System::String ^ description, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public System.Diagnostics.Metrics.ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<System.Collections.Generic.IEnumerable<System.Diagnostics.Metrics.Measurement<T>>> observeValues, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>> tags) where T : struct;
public System.Diagnostics.Metrics.ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<System.Collections.Generic.IEnumerable<System.Diagnostics.Metrics.Measurement<T>>> observeValues, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags) where T : struct;
member this.CreateObservableUpDownCounter : string * Func<seq<System.Diagnostics.Metrics.Measurement<'T>>> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.ObservableUpDownCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableUpDownCounter(Of T As Structure) (name As String, observeValues As Func(Of IEnumerable(Of Measurement(Of T))), unit As String, description As String, tags As IEnumerable(Of KeyValuePair(Of String, Object))) As ObservableUpDownCounter(Of T)
Parametry typu
- T
Typ liczbowy miary.
Parametry
- name
- String
Nazwa instrumentu. Nie można mieć .null
- observeValues
- Func<IEnumerable<Measurement<T>>>
Wywołanie zwrotne do wywołania w celu pobrania pomiarów, gdy element jest wywoływany Observe() przez RecordObservableInstruments()element .
- unit
- String
Opcjonalna jednostka instrumentacja pomiarów.
- description
- String
Opcjonalny opis instrumentu.
- tags
- IEnumerable<KeyValuePair<String,Object>>
tagi do dołączenia do licznika.
Zwraca
Nowy obserwowalny licznik w dół.
Uwagi
Note
W przeciwieństwie do UpDownCountermetody , która przyjmuje wartość przyrostową/różnicową, funkcja wywołania zwrotnego zgłasza wartość bezwzględną .ObservableUpDownCounter Aby określić zgłoszoną szybkość ObservableUpDownCounter zmiany, używana jest różnica między kolejnymi pomiarami.
Przykładowe zastosowania dla ObservableUpDownCounter: rozmiar sterty procesu lub przybliżona liczba elementów w buforze cyklicznym bez blokady.
Dotyczy
CreateObservableUpDownCounter<T>(String, Func<Measurement<T>>, String, String, IEnumerable<KeyValuePair<String,Object>>)
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
Utwórz obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza wzrost lub zmniejszenie wartości podczas obserwowania instrumentu.
public:
generic <typename T>
where T : value class System::Diagnostics::Metrics::ObservableUpDownCounter<T> ^ CreateObservableUpDownCounter(System::String ^ name, Func<System::Diagnostics::Metrics::Measurement<T>> ^ observeValue, System::String ^ unit, System::String ^ description, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public System.Diagnostics.Metrics.ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<System.Diagnostics.Metrics.Measurement<T>> observeValue, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>> tags) where T : struct;
public System.Diagnostics.Metrics.ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<System.Diagnostics.Metrics.Measurement<T>> observeValue, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags) where T : struct;
member this.CreateObservableUpDownCounter : string * Func<System.Diagnostics.Metrics.Measurement<'T>> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.ObservableUpDownCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableUpDownCounter(Of T As Structure) (name As String, observeValue As Func(Of Measurement(Of T)), unit As String, description As String, tags As IEnumerable(Of KeyValuePair(Of String, Object))) As ObservableUpDownCounter(Of T)
Parametry typu
- T
Typ liczbowy miary.
Parametry
- name
- String
Nazwa instrumentu. Nie można mieć .null
- observeValue
- Func<Measurement<T>>
Wywołanie zwrotne do wywołania w celu pobrania pomiarów, gdy element jest wywoływany Observe() przez RecordObservableInstruments()
- unit
- String
Opcjonalna jednostka instrumentacja pomiarów.
- description
- String
Opcjonalny opis instrumentu.
- tags
- IEnumerable<KeyValuePair<String,Object>>
tagi do dołączenia do licznika.
Zwraca
Nowy obserwowalny licznik w dół.
Uwagi
Note
W przeciwieństwie do funkcji UpDownCounter, która przyjmuje wartość przyrostową/różnicową, funkcja wywołania zwrotnego zgłasza wartość bezwzględną obiektu ObservableUpDownCounter. Aby określić zgłoszoną szybkość zmieniania się elementu ObservableUpDownCounter, używana jest różnica między kolejnymi pomiarami.
Przykładowe zastosowania dla obiektu ObservableUpDownCounter: rozmiar sterty procesu lub przybliżona liczba elementów w buforze cyklicznym bez blokady.
Dotyczy
CreateObservableUpDownCounter<T>(String, Func<T>, String, String, IEnumerable<KeyValuePair<String,Object>>)
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
- Źródło:
- Meter.cs
Utwórz obiekt ObservableUpDownCounter. ObservableUpDownCounter to instrument, który zgłasza wzrost lub zmniejszenie wartości podczas obserwowania instrumentu.
public:
generic <typename T>
where T : value class System::Diagnostics::Metrics::ObservableUpDownCounter<T> ^ CreateObservableUpDownCounter(System::String ^ name, Func<T> ^ observeValue, System::String ^ unit, System::String ^ description, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public System.Diagnostics.Metrics.ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<T> observeValue, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>> tags) where T : struct;
public System.Diagnostics.Metrics.ObservableUpDownCounter<T> CreateObservableUpDownCounter<T>(string name, Func<T> observeValue, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags) where T : struct;
member this.CreateObservableUpDownCounter : string * Func<'T (requires 'T : struct)> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.ObservableUpDownCounter<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateObservableUpDownCounter(Of T As Structure) (name As String, observeValue As Func(Of T), unit As String, description As String, tags As IEnumerable(Of KeyValuePair(Of String, Object))) As ObservableUpDownCounter(Of T)
Parametry typu
- T
Typ liczbowy miary.
Parametry
- name
- String
Nazwa instrumentu. Nie można mieć .null
- observeValue
- Func<T>
Wywołanie zwrotne do wywołania w celu pobrania pomiarów, gdy element jest wywoływany Observe() przez RecordObservableInstruments()element .
- unit
- String
Opcjonalna jednostka instrumentacja pomiarów.
- description
- String
Opcjonalny opis instrumentu.
- tags
- IEnumerable<KeyValuePair<String,Object>>
tagi do dołączenia do licznika.
Zwraca
Nowy obserwowalny licznik w dół.
Uwagi
Note
W przeciwieństwie do funkcji UpDownCounter, która przyjmuje wartość przyrostową/różnicową, funkcja wywołania zwrotnego zgłasza wartość bezwzględną obiektu ObservableUpDownCounter. Aby określić zgłoszoną szybkość zmieniania się elementu ObservableUpDownCounter, używana jest różnica między kolejnymi pomiarami.
Przykładowe zastosowania dla obiektu ObservableUpDownCounter: rozmiar sterty procesu lub przybliżona liczba elementów w buforze cyklicznym bez blokady.