MeasurementExtensions.MatchesTags Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MatchesTags<T>(IEnumerable<CollectedMeasurement<T>>, KeyValuePair<String,Object>[]) |
Filters a list of measurements based on exact tag matching. |
MatchesTags<T>(IEnumerable<CollectedMeasurement<T>>, String[]) |
Filters a list of measurements based on exact tag name matching. |
MatchesTags<T>(IEnumerable<CollectedMeasurement<T>>, KeyValuePair<String,Object>[])
- Source:
- MeasurementExtensions.cs
- Source:
- MeasurementExtensions.cs
- Source:
- MeasurementExtensions.cs
Filters a list of measurements based on exact tag matching.
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IEnumerable<Microsoft::Extensions::Diagnostics::Metrics::Testing::CollectedMeasurement<T> ^> ^ MatchesTags(System::Collections::Generic::IEnumerable<Microsoft::Extensions::Diagnostics::Metrics::Testing::CollectedMeasurement<T> ^> ^ measurements, ... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public static System.Collections.Generic.IEnumerable<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<T>> MatchesTags<T> (this System.Collections.Generic.IEnumerable<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<T>> measurements, params System.Collections.Generic.KeyValuePair<string,object>[] tags) where T : struct;
static member MatchesTags : seq<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<'T>> * System.Collections.Generic.KeyValuePair<string, obj>[] -> seq<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<'T>> (requires 'T : struct)
<Extension()>
Public Function MatchesTags(Of T As Structure) (measurements As IEnumerable(Of CollectedMeasurement(Of T)), ParamArray tags As KeyValuePair(Of String, Object)()) As IEnumerable(Of CollectedMeasurement(Of T))
Type Parameters
- T
The type of measurement value.
Parameters
- measurements
- IEnumerable<CollectedMeasurement<T>>
The original full list of measurements.
- tags
- KeyValuePair<String,Object>[]
The set of tags to match against. Only measurements that have exactly those matching tags are returned.
Returns
A list of matching measurements.
Applies to
MatchesTags<T>(IEnumerable<CollectedMeasurement<T>>, String[])
- Source:
- MeasurementExtensions.cs
- Source:
- MeasurementExtensions.cs
- Source:
- MeasurementExtensions.cs
Filters a list of measurements based on exact tag name matching.
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IEnumerable<Microsoft::Extensions::Diagnostics::Metrics::Testing::CollectedMeasurement<T> ^> ^ MatchesTags(System::Collections::Generic::IEnumerable<Microsoft::Extensions::Diagnostics::Metrics::Testing::CollectedMeasurement<T> ^> ^ measurements, ... cli::array <System::String ^> ^ tags);
public static System.Collections.Generic.IEnumerable<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<T>> MatchesTags<T> (this System.Collections.Generic.IEnumerable<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<T>> measurements, params string[] tags) where T : struct;
static member MatchesTags : seq<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<'T>> * string[] -> seq<Microsoft.Extensions.Diagnostics.Metrics.Testing.CollectedMeasurement<'T>> (requires 'T : struct)
<Extension()>
Public Function MatchesTags(Of T As Structure) (measurements As IEnumerable(Of CollectedMeasurement(Of T)), ParamArray tags As String()) As IEnumerable(Of CollectedMeasurement(Of T))
Type Parameters
- T
The type of measurement value.
Parameters
- measurements
- IEnumerable<CollectedMeasurement<T>>
The original full list of measurements.
- tags
- String[]
The set of tags to match against. Only measurements that have exactly those matching tag names are returned.
Returns
A list of matching measurements.
Applies to
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по