Delen via


MetricsCollection.Remove Method

Definition

Overloads

Remove(Metric)

Removes the specified metric from this collection.

Remove(MetricIdentifier)

Removes a metric with the specified identity from this collection.

Remove(MetricIdentifier, Metric)

Removes a metric with the specified identity from this collection.

Remove(Metric)

Removes the specified metric from this collection.

public bool Remove (Microsoft.ApplicationInsights.Metric metric);
abstract member Remove : Microsoft.ApplicationInsights.Metric -> bool
override this.Remove : Microsoft.ApplicationInsights.Metric -> bool
Public Function Remove (metric As Metric) As Boolean

Parameters

metric
Metric

A metric.

Returns

Whether the metric was found and removed.

Implements

Applies to

Remove(MetricIdentifier)

Removes a metric with the specified identity from this collection.

public bool Remove (Microsoft.ApplicationInsights.Metrics.MetricIdentifier metricIdentifier);
member this.Remove : Microsoft.ApplicationInsights.Metrics.MetricIdentifier -> bool
Public Function Remove (metricIdentifier As MetricIdentifier) As Boolean

Parameters

metricIdentifier
MetricIdentifier

A metric identifier.

Returns

Whether the metric was found and removed.

Applies to

Remove(MetricIdentifier, Metric)

Removes a metric with the specified identity from this collection.

public bool Remove (Microsoft.ApplicationInsights.Metrics.MetricIdentifier metricIdentifier, out Microsoft.ApplicationInsights.Metric removedMetric);
member this.Remove : Microsoft.ApplicationInsights.Metrics.MetricIdentifier * Metric -> bool
Public Function Remove (metricIdentifier As MetricIdentifier, ByRef removedMetric As Metric) As Boolean

Parameters

metricIdentifier
MetricIdentifier

A metric identifier.

removedMetric
Metric

The metric that was removed or null.

Returns

Whether the metric was found and removed.

Applies to