HttpClientBuilderExtensions.RemoveAllLoggers(IHttpClientBuilder) 方法

定义

删除之前添加的名为 HttpClient的所有记录器,包括默认记录器。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ RemoveAllLoggers(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder RemoveAllLoggers (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder);
static member RemoveAllLoggers : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function RemoveAllLoggers (builder As IHttpClientBuilder) As IHttpClientBuilder

参数

返回

可用于配置客户端的 IHttpClientBuilder

适用于