MetricsBuilderExtensions.ClearListeners(IMetricsBuilder) 方法

定义

从依赖项注入容器中删除所有 IMetricsListener 注册。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ ClearListeners(Microsoft::Extensions::Diagnostics::Metrics::IMetricsBuilder ^ builder);
public static Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder ClearListeners (this Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder builder);
static member ClearListeners : Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder -> Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder
<Extension()>
Public Function ClearListeners (builder As IMetricsBuilder) As IMetricsBuilder

参数

返回

返回链接的原始 IMetricsBuilder 值。

适用于